using System; using System.Collections; using Gtk; using Glade; using Dominio.Afiliados; using Dominio.Planes; public class App { Dialog wConsultarAfiliado; ArrayList lst; Glade.XML xmla; #region Tests 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) { if ( args.Length > 0) { if (args[0].Equals ("--test")) { EjecutarTests(); return; } Console.WriteLine ("Parametro no válido"); return; } new App (); } #endregion Entry Point public App () { Application.Init(); Glade.XML gxml = new Glade.XML (null, "main.glade", "main", null); gxml.Autoconnect (this); InitDemo (); Application.Run(); } private void InitDemo () { } public void OnSalirActivate (object o, EventArgs args) { Application.Quit (); } public void OnDeleteEvent(object o, DeleteEventArgs args) { Application.Quit (); } public void OnIngresarSolicitud(object o, EventArgs args) { VIngresarSolicitud v = new VIngresarSolicitud (); v.Run (); } public void OnEmitirHojaDeRuta (object o, EventArgs args) { VEmitirHojaDeRuta v = new VEmitirHojaDeRuta (); v.Run (); } public void OnAgregarAfiliado (object o, EventArgs args) { VAgregarAfiliado v = new VAgregarAfiliado (); v.Run (); } public void OnMantenerPlanes (object o, EventArgs args) { VMantenerPlanes v = new VMantenerPlanes (); v.Run (); } public void OnRegistrarVisitas (object o, EventArgs args) { VRegistrarVisitas v = new VRegistrarVisitas (); v.Run (); } }