private void btVoltar_Click(object sender, EventArgs e) { ((Form)this.TopLevelControl).Hide(); frmMenuInicial mi = new frmMenuInicial(); mi.Show(); }
private void btEntrar_Click(object sender, EventArgs e) { if (txtUsuario.Text != "" && txtSenha.Text != "") { logdto.nomeUsuario = txtUsuario.Text; logdto.senha = txtSenha.Text; if (usubll.verifica_login(logdto) == true) { Console.Write(Conexao.con); frmMenuInicial fmenu = new frmMenuInicial(); this.Hide(); fmenu.Show(); } else { MessageBox.Show("Usuario ou senha incorretos."); } } else { MessageBox.Show("Por favor, informe o usuário e a senha."); } }
private void frmAlterarSenha_FormClosing(object sender, FormClosingEventArgs e) { frmMenuInicial mi = new frmMenuInicial("perfil"); mi.Show(); }
private void frmNovoEmprestimo_FormClosing(object sender, FormClosingEventArgs e) { frmMenuInicial mi = new frmMenuInicial("emprestimo"); mi.Show(); }
private void frmReserva_FormClosing(object sender, FormClosingEventArgs e) { frmMenuInicial mi = new frmMenuInicial("reserva"); mi.Show(); }
private void frmCadastrarCliente_FormClosing(object sender, FormClosingEventArgs e) { frmMenuInicial mi = new frmMenuInicial("cadastro"); mi.Show(); }