예제 #1
0
 private void btnCerrar_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("¿Estás seguro de Cerrar el Programa?", "¡Alerta!", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         InicioSesion login = new InicioSesion();
         login.Show();
         this.Close();
     }
 }
예제 #2
0
        public void CerrarSesion()
        {
            //Ocultar este formulario
            Interfaz.Inicio.ActiveForm.Hide();
            //Crear Nuevo formulario
            InicioSesion frm = new InicioSesion();

            //Activar-Motrar formulario principal
            frm.Show();
        }
예제 #3
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     contador++;
     if (contador >= 300)
     {
         timer1.Enabled = false;
         this.Hide();
         InicioSesion login = new InicioSesion();
         login.Show();
     }
 }
예제 #4
0
 /// <summary>
 /// Selector de Cerrar Sesión
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void labelCerrarSesion_PreviewMouseDown(object sender, MouseButtonEventArgs e)
 {
     InicioSesion iniciSesion = new InicioSesion();
     iniciSesion.Show();
     this.Close();
 }
 /// <summary>
 /// Muestra el inicio de sesión al cerrar la ventana
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Window_Closed(object sender, EventArgs e)
 {
     InicioSesion iniciSesion = new InicioSesion();
     iniciSesion.Show();
 }