/* Controlador Generico */ namespace Controlador { using com.db4o; using System; using System.Collections; public class Controller : IDisposable { private ObjectContainer db; public ObjectContainer Db { get { return db; } } public Controller () { db = Db4o.openFile("os.yap"); } public void Dispose () { db.close (); } protected ArrayList ObjectSetToArrayList (ObjectSet result) { ArrayList lst = new ArrayList (); Object s; if (result == null) return lst; while ((s = result.next ()) != null) { lst.Add (s); } return lst; } } }