X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/blobdiff_plain/419f78898bac8d6ff8a228777b29a87ab5697686..c27e0207e5f08b9bbe8d15ed4eb655fe2ac6239a:/carpeta/disenio_grafico/src/Main.cs?ds=sidebyside diff --git a/carpeta/disenio_grafico/src/Main.cs b/carpeta/disenio_grafico/src/Main.cs index bbe69a7..b7400b9 100644 --- a/carpeta/disenio_grafico/src/Main.cs +++ b/carpeta/disenio_grafico/src/Main.cs @@ -33,14 +33,7 @@ public class App private void InitDemo () { - lst = new ArrayList (); - Plan p = new Plan (1); - p.Descripcion = "Hola"; - p.PermanenciaMinima = 2; - Solicitante s = new Solicitante (ETipoDocumento.DNI, 27000193, "Gazer"); - Afiliado f = new Afiliado (s, p, new DateTime (2005, 7, 8)); - lst.Add (f); } public void OnSalirActivate (object o, EventArgs args) @@ -50,19 +43,14 @@ public class App public void OnConsultarAfiliado (object o, EventArgs args) { - xmla = new Glade.XML (null, "consultar_afiliado.glade", "consultarAfiliado", null); - xmla.Autoconnect (this); - wConsultarAfiliado = (Dialog)xmla.GetWidget ("consultarAfiliado"); - wConsultarAfiliado.SetSizeRequest (450, 250); - TreeView lista = (TreeView)xmla.GetWidget ("lista"); - - TreeStore store = new TreeStore (typeof (string), typeof (string)); - lista.Model = store; - - lista.AppendColumn ("Codigo", new CellRendererText (), "text", 0); - lista.AppendColumn ("Nombre", new CellRendererText (), "text", 1); + VIngresarSolicitud v = new VIngresarSolicitud (); + v.Run (); + } - wConsultarAfiliado.Run (); + public void OnEmitirHojaDeRuta (object o, EventArgs args) + { + VEmitirHojaDeRuta v = new VEmitirHojaDeRuta (); + v.Run (); } public void OnConsultarAfiliadoClose (object o, EventArgs args)