Exemple #1
0
 private void cerrarSesiónToolStripMenuItem_Click()
 {
     if (ap != null)
     {
         ap.Cerrar_Sesion();
     }
     Application.Exit();
 }
Exemple #2
0
        private void cerrarSesiónToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.tabControl2.Visible      = false;
            this.comboBoxPaciente.Enabled = true;
            this.comboBoxPrueba.Enabled   = true;
            this.iniciarSesionToolStripMenuItem.Enabled = true;
            this.cerrarSesiónToolStripMenuItem.Enabled  = false;
            this.groupBoxConf.Controls.Clear();
            this.comboBoxPaciente.Enabled = false;
            this.comboBoxPrueba.Enabled   = false;

            this.toolStripButtonInicio.Enabled   = true;
            this.toolStripButtonCerrar.Enabled   = false;
            this.toolStripButtonExportar.Enabled = false;
            this.toolStripCambiarPass.Enabled    = false;

            ap.Cerrar_Sesion();
        }