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 VRegistrarVisitas v = new VRegistrarVisitas ();
59 public void OnConsultarAfiliadoClose (object o, EventArgs args)
61 wConsultarAfiliado.Destroy ();
64 public void OnVerAfiliado (object o, EventArgs args)
68 public void OnBuscarAfiliado (object o, EventArgs args)
70 Entry codigo = (Entry)xmla.GetWidget ("s_codigo");
71 TreeView lista = (TreeView)xmla.GetWidget ("lista");
72 TreeStore store = (TreeStore)lista.Model;
73 foreach (Afiliado a in lst) {
74 if (a.Codigo == Int32.Parse (codigo.Text))
75 store.AppendValues (String.Format("{0}", a.Codigo), a.Nombre);