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(); } } }
public void LOGOUT() { USUARIO = null; LoginForm logear = new LoginForm(); logear.Show(); this.Hide(); }