Example #1
0
        private void btnAceptar_Click(object sender, EventArgs e)
        {
            frm_login Log = new frm_login();

            Log.Visible  = true;
            this.Visible = false;
        }
        private void btn_salir_Click_1(object sender, EventArgs e)
        {
            frm_login log = new frm_login();

            log.Visible  = true;
            this.Visible = false;
        }
Example #3
0
 private void btn_salir_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("¿Estás seguro de cerrar sesión?", "Advertencia", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
     {
         frm_login log = new frm_login();
         this.FormClosed += log.LogOut;
         this.Close();
     }
 }