Example #1
0
        private void btnEntrar_Click(object sender, EventArgs e)
        {
            u.Username = txtUser.Text;
            u.Password = txtSenha.Text;
            Usuario us = uDAO.verificaUsuario(u);

            if (us.Credencial != null)
            {
                this.Hide();
                MenuPrincipal p = new MenuPrincipal();
                p.validaUsuario(u);
                p.ShowDialog();
                this.Close();
            }
            else
            {
                MessageBox.Show("Senha incorreta! Tente novamente", "Erro");
            }
        }
Example #2
0
        private void homeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MenuPrincipal mp = new MenuPrincipal();

            mp.ShowDialog();
        }