public void OpenLogin() { Hide(); var login = new Login.Login(this); login.Show(); }
private void button1_Click(object sender, EventArgs e) { Login.Login login = new Login.Login(); this.Hide(); login.ShowDialog(this); this.Close(); }
private void Usuario_Click(object sender, EventArgs e) { this.Hide(); Form f1 = new Login.Login(this); f1.ShowDialog(); this.Show(); }
private void button1_Click(object sender, EventArgs e) { if (Globals.tipoRol != 0) { var newForm = new Login.Login(); newForm.Show(); this.Hide(); } else { MessageBox.Show("Acceso restringido"); } }