3 using System.Collections;
6 using Dominio.Afiliados;
13 Dialog wConsultarAfiliado;
19 private static void EjecutarTests()
21 Tests.TestsAutorizacion.Instancia.EjecutarTodos();
25 //Acá pueden agregar más, si quieren
32 static public void Main (string[] args)
35 db = Db4o.openFile("os.yap");
37 Query query = db.query();
38 query.constrain(typeof(Persona));
39 ObjectSet result = query.execute();
42 Console.WriteLine (result);
43 Console.WriteLine ("--");
44 while ((s = (Persona)result.next ()) != null) {
45 Console.Write (" -- ");
46 Console.WriteLine ("{0} {1} {2} {3}", s.TipoDocumento, s.NroDocumento, s.Nombre, s.Apellido);
48 Console.WriteLine ("--");
51 if ( args.Length > 0) {
52 if (args[0].Equals ("--test")) {
56 Console.WriteLine ("Parametro no válido");
62 #endregion Entry Point
68 Glade.XML gxml = new Glade.XML (null, "main.glade", "main", null);
69 gxml.Autoconnect (this);
75 private void InitDemo ()
80 public void OnSalirActivate (object o, EventArgs args)
85 public void OnDeleteEvent(object o, DeleteEventArgs args)
90 public void OnIngresarSolicitud(object o, EventArgs args)
92 VIngresarSolicitud v = new VIngresarSolicitud ();
96 public void OnEmitirHojaDeRuta (object o, EventArgs args)
98 VEmitirHojaDeRuta v = new VEmitirHojaDeRuta ();
102 public void OnAgregarAfiliado (object o, EventArgs args)
104 VAgregarAfiliado v = new VAgregarAfiliado ();
109 public void OnMantenerPlanes (object o, EventArgs args)
111 VMantenerPlanes v = new VMantenerPlanes ();
115 public void OnRegistrarVisitas (object o, EventArgs args)
117 VRegistrarVisitas v = new VRegistrarVisitas ();