ArrayList lst;
Glade.XML xmla;
+ #region Tests
+
+ /// <summary>\r
+ /// Decide si se corre la demo ó los tests automatizados\r
+ /// </summary>
+ private static bool testing = false;
+
+ private static void EjecutarTests()
+ {
+ Tests.TestsAutorizacion.Instancia.EjecutarTodos();
+
+ Console.Read();
+
+ //Acá pueden agregar más, si quieren
+ }
+
+ #endregion Tests
+
+ #region Entry Point
+
static public void Main (string[] args)
{
- new App ();
+ if ( ! testing )
+ new App ();
+ else
+ EjecutarTests();
}
+ #endregion Entry Point
+
public App ()
{
Application.Init();
{
Application.Quit ();
}
+
+ public void OnDeleteEvent(object o, DeleteEventArgs args)
+ {
+ Application.Quit ();
+ }
public void OnConsultarAfiliado (object o, EventArgs args)
{
v.Run ();
}
+ public void OnRegistrarVisitas (object o, EventArgs args)
+ {
+ /*ABMGenerico g = new ABMGenerico (typeof(Plan));
+ g.Run ();
+ return;*/
+ VRegistrarVisitas v = new VRegistrarVisitas ();
+ v.Run ();
+ }
+
public void OnConsultarAfiliadoClose (object o, EventArgs args)
{
wConsultarAfiliado.Destroy ();