X-Git-Url: https://git.llucax.com/z.facultad/75.10/miklolife.git/blobdiff_plain/dd516a3640e528b4a29c477f0ac390ac84847672..da1f09b5e9efa6b376117a02dbf59dfd967f51f9:/demo/src/Main.cs diff --git a/demo/src/Main.cs b/demo/src/Main.cs index 8e7dcbf..aa083cc 100644 --- a/demo/src/Main.cs +++ b/demo/src/Main.cs @@ -14,11 +14,6 @@ public class App #region Tests - /// - /// Decide si se corre la demo ó los tests automatizados - /// - private static bool testing = false; - private static void EjecutarTests() { Tests.TestsAutorizacion.Instancia.EjecutarTodos(); @@ -34,10 +29,15 @@ public class App static public void Main (string[] args) { - if ( ! testing ) - new App (); - else - EjecutarTests(); + if ( args.Length > 0) { + if (args[0].Equals ("--test")) { + EjecutarTests(); + return; + } + Console.WriteLine ("Parametro no válido"); + return; + } + new App (); } #endregion Entry Point @@ -68,7 +68,7 @@ public class App Application.Quit (); } - public void OnConsultarAfiliado (object o, EventArgs args) + public void OnIngresarSolicitud(object o, EventArgs args) { VIngresarSolicitud v = new VIngresarSolicitud (); v.Run (); @@ -80,33 +80,19 @@ public class App v.Run (); } - public void OnRegistrarVisitas (object o, EventArgs args) + public void OnMantenerPlanes (object o, EventArgs args) { - /*ABMGenerico g = new ABMGenerico (typeof(Plan)); - g.Run (); - return;*/ - VRegistrarVisitas v = new VRegistrarVisitas (); + VMantenerPlanes v = new VMantenerPlanes (); v.Run (); } - public void OnConsultarAfiliadoClose (object o, EventArgs args) - { - wConsultarAfiliado.Destroy (); - } - - public void OnVerAfiliado (object o, EventArgs args) - { - } - - public void OnBuscarAfiliado (object o, EventArgs args) + public void OnRegistrarVisitas (object o, EventArgs args) { - Entry codigo = (Entry)xmla.GetWidget ("s_codigo"); - TreeView lista = (TreeView)xmla.GetWidget ("lista"); - TreeStore store = (TreeStore)lista.Model; - foreach (Afiliado a in lst) { - if (a.Codigo == Int32.Parse (codigo.Text)) - store.AppendValues (String.Format("{0}", a.Codigo), a.Nombre); - } + ABMGenerico g = new ABMGenerico (typeof(Plan)); + g.Run (); + return; + /*VRegistrarVisitas v = new VRegistrarVisitas (); + v.Run ();*/ } }