3 using System.Collections;
6 using Dominio.Afiliados;
11 Dialog wConsultarAfiliado;
18 /// Decide si se corre la demo ó los tests automatizados
\r
20 private static bool testing = false;
22 private static void EjecutarTests()
24 Tests.TestsAutorizacion.Instancia.EjecutarTodos();
28 //Acá pueden agregar más, si quieren
35 static public void Main (string[] args)
37 if ( args.Length > 0) {
38 if (args[0].Equals ("--test")) {
43 Console.WriteLine ("Parametro no válido");
49 #endregion Entry Point
55 Glade.XML gxml = new Glade.XML (null, "main.glade", "main", null);
56 gxml.Autoconnect (this);
62 private void InitDemo ()
67 public void OnSalirActivate (object o, EventArgs args)
72 public void OnDeleteEvent(object o, DeleteEventArgs args)
77 public void OnConsultarAfiliado (object o, EventArgs args)
79 VIngresarSolicitud v = new VIngresarSolicitud ();
83 public void OnEmitirHojaDeRuta (object o, EventArgs args)
85 VEmitirHojaDeRuta v = new VEmitirHojaDeRuta ();
89 public void OnRegistrarVisitas (object o, EventArgs args)
91 /*ABMGenerico g = new ABMGenerico (typeof(Plan));
94 VRegistrarVisitas v = new VRegistrarVisitas ();
98 public void OnConsultarAfiliadoClose (object o, EventArgs args)
100 wConsultarAfiliado.Destroy ();
103 public void OnVerAfiliado (object o, EventArgs args)
107 public void OnBuscarAfiliado (object o, EventArgs args)
109 Entry codigo = (Entry)xmla.GetWidget ("s_codigo");
110 TreeView lista = (TreeView)xmla.GetWidget ("lista");
111 TreeStore store = (TreeStore)lista.Model;
112 foreach (Afiliado a in lst) {
113 if (a.Codigo == Int32.Parse (codigo.Text))
114 store.AppendValues (String.Format("{0}", a.Codigo), a.Nombre);