예제 #1
0
        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.");
     }
 }
예제 #3
0
        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();
 }
예제 #5
0
        private void frmReserva_FormClosing(object sender, FormClosingEventArgs e)
        {
            frmMenuInicial mi = new frmMenuInicial("reserva");

            mi.Show();
        }
예제 #6
0
        private void frmCadastrarCliente_FormClosing(object sender, FormClosingEventArgs e)
        {
            frmMenuInicial mi = new frmMenuInicial("cadastro");

            mi.Show();
        }