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 (); }
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 (); } }
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 } }