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);
26 Widget w = gxml.GetWidget ("main");
28 w.SetSizeRequest (450, 250);
34 private void InitDemo ()
39 public void OnSalirActivate (object o, EventArgs args)
44 public void OnConsultarAfiliado (object o, EventArgs args)
46 VIngresarSolicitud v = new VIngresarSolicitud ();
50 public void OnEmitirHojaDeRuta (object o, EventArgs args)
52 VEmitirHojaDeRuta v = new VEmitirHojaDeRuta ();
56 public void OnConsultarAfiliadoClose (object o, EventArgs args)
58 wConsultarAfiliado.Destroy ();
61 public void OnVerAfiliado (object o, EventArgs args)
65 public void OnBuscarAfiliado (object o, EventArgs args)
67 Entry codigo = (Entry)xmla.GetWidget ("s_codigo");
68 TreeView lista = (TreeView)xmla.GetWidget ("lista");
69 TreeStore store = (TreeStore)lista.Model;
70 foreach (Afiliado a in lst) {
71 if (a.Codigo == Int32.Parse (codigo.Text))
72 store.AppendValues (String.Format("{0}", a.Codigo), a.Nombre);