Example #1
0
 private void frmLogin_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (cancelo)
     {
         Application.Exit();
         ConexionBD.CerrarConexion();
     }
 }
Example #2
0
 private void frmPrincipal_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (!cierreSesion)
     {
         Application.Exit();
         ConexionBD.CerrarConexion();
     }
 }