Beispiel #1
0
        public static void Main(string[] args)
        {
            Application.Init ();
            //PrincipalWindow pri = new PrincipalWindow();
            IniciarSesionDialog pri = new IniciarSesionDialog();
            try
            {
                pri.Show();
            }
            catch (MySql.Data.MySqlClient.MySqlException e)
            {
                pri.Destroy();
            #if DEBUG
                Console.WriteLine(e.Message);
            #endif
            }

            Application.Run ();
        }
Beispiel #2
0
        protected void OnCerrarActionActivated(object sender, EventArgs e)
        {
            this.Destroy ();

            IniciarSesionDialog IniciarSesion = new IniciarSesionDialog ();

            try {
                IniciarSesion.Run ();
                IniciarSesion.Destroy ();
            } catch (MySql.Data.MySqlClient.MySqlException ex) {
                IniciarSesion.Destroy ();

            }
        }
Beispiel #3
0
 protected void OnIniciarSesionActionActivated(object sender, EventArgs e)
 {
     IniciarSesionDialog rcd = new IniciarSesionDialog();
     try
     {
         rcd.Run();
         rcd.Destroy();
     }
     catch (MySql.Data.MySqlClient.MySqlException ex)
     {
         rcd.Destroy();
     #if DEBUG
         Console.WriteLine(ex.Message);
     #endif
     }
 }