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