3 using System.Collections;
6 using Dominio.Afiliados;
11 Dialog wConsultarAfiliado;
15 static public void Main (string[] args)
24 Glade.XML gxml = new Glade.XML (null, "main.glade", "main", null);
25 gxml.Autoconnect (this);
31 private void InitDemo ()
36 public void OnSalirActivate (object o, EventArgs args)
41 public void OnConsultarAfiliado (object o, EventArgs args)
43 VIngresarSolicitud v = new VIngresarSolicitud ();
47 public void OnEmitirHojaDeRuta (object o, EventArgs args)
49 VEmitirHojaDeRuta v = new VEmitirHojaDeRuta ();
53 public void OnRegistrarVisitas (object o, EventArgs args)
55 /*Plan p = new Plan (1);
56 ABMGenerico g = new ABMGenerico (p.GetType());
59 VRegistrarVisitas v = new VRegistrarVisitas ();
63 public void OnConsultarAfiliadoClose (object o, EventArgs args)
65 wConsultarAfiliado.Destroy ();
68 public void OnVerAfiliado (object o, EventArgs args)
72 public void OnBuscarAfiliado (object o, EventArgs args)
74 Entry codigo = (Entry)xmla.GetWidget ("s_codigo");
75 TreeView lista = (TreeView)xmla.GetWidget ("lista");
76 TreeStore store = (TreeStore)lista.Model;
77 foreach (Afiliado a in lst) {
78 if (a.Codigo == Int32.Parse (codigo.Text))
79 store.AppendValues (String.Format("{0}", a.Codigo), a.Nombre);