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 } }