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 OnConsultarAfiliadoClose (object o, EventArgs args)
55 wConsultarAfiliado.Destroy ();
58 public void OnVerAfiliado (object o, EventArgs args)
62 public void OnBuscarAfiliado (object o, EventArgs args)
64 Entry codigo = (Entry)xmla.GetWidget ("s_codigo");
65 TreeView lista = (TreeView)xmla.GetWidget ("lista");
66 TreeStore store = (TreeStore)lista.Model;
67 foreach (Afiliado a in lst) {
68 if (a.Codigo == Int32.Parse (codigo.Text))
69 store.AppendValues (String.Format("{0}", a.Codigo), a.Nombre);