private void btnMenu_Click(object sender, EventArgs e) { frm_principal tela = new frm_principal(); tela.Show(); this.Close(); }
private void btn_voltar_Click(object sender, EventArgs e) { frm_principal frm = new frm_principal(); this.Hide(); frm.Show(); }
private void label4_Click(object sender, EventArgs e) { Properties.Settings.Default.xrol = comboBox1.Text; Properties.Settings.Default.xusuario = textBox2.Text; Properties.Settings.Default.odbc = textBox1.Text; frm_principal x = new frm_principal(); x.Visible = true; this.Hide(); }
private void btnEntrar_Click(object sender, EventArgs e) { LoginBusiness business = new LoginBusiness(); string user = txtUser.Text; string pass = txtPass.Text; LoginDTO usuario = business.Logar(user, pass); if (usuario != null) { UserSession.UsuarioLogado = usuario; frm_principal tela = new frm_principal(); tela.Show(); this.Close(); } else { MessageBox.Show("Nome de usuário ou senha incorretos."); } }
private void btn_principal_Click(object sender, EventArgs e) { frm_principal frm = new frm_principal(); frm.Show(); }
private void btn_Anterior_Click(object sender, EventArgs e) { frm_principal frmPrincipal = new frm_principal(_UserId, _UserNombre, _UserDNI, _RolNombre, _UserRol); frmPrincipal.Show(); }