예제 #1
0
파일: Main.cs 프로젝트: pelao/punto
        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 ();
        }
예제 #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 ();

            }
        }
예제 #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
     }
 }