Exemple #1
0
 private void tareaCompletada(object sender, RunWorkerCompletedEventArgs e)
 {
     if (e.Cancelled)
     {
         MessageBox.Show("Inicio Cancelado");
         Application.Exit();
     }
     else
     {
         if (OK)
         {
             LoginForm login = new LoginForm();
             login.Show();
             this.Hide();
         }
         else
         {
             Application.Exit();
         }
     }
 }
Exemple #2
0
 public void LOGOUT()
 {
     USUARIO = null;
     LoginForm logear = new LoginForm();
     logear.Show();
     this.Hide();
 }