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 OnDeleteEvent(object o, DeleteEventArgs args)
46 public void OnConsultarAfiliado (object o, EventArgs args)
48 VIngresarSolicitud v = new VIngresarSolicitud ();
52 public void OnEmitirHojaDeRuta (object o, EventArgs args)
54 VEmitirHojaDeRuta v = new VEmitirHojaDeRuta ();
58 public void OnRegistrarVisitas (object o, EventArgs args)
60 /*ABMGenerico g = new ABMGenerico (typeof(Plan));
63 VRegistrarVisitas v = new VRegistrarVisitas ();
67 public void OnConsultarAfiliadoClose (object o, EventArgs args)
69 wConsultarAfiliado.Destroy ();
72 public void OnVerAfiliado (object o, EventArgs args)
76 public void OnBuscarAfiliado (object o, EventArgs args)
78 Entry codigo = (Entry)xmla.GetWidget ("s_codigo");
79 TreeView lista = (TreeView)xmla.GetWidget ("lista");
80 TreeStore store = (TreeStore)lista.Model;
81 foreach (Afiliado a in lst) {
82 if (a.Codigo == Int32.Parse (codigo.Text))
83 store.AppendValues (String.Format("{0}", a.Codigo), a.Nombre);