Beispiel #1
0
        private void btnFecharTela_Click(object sender, EventArgs e)
        {
            this.Hide();
            FrmMenu menu = new FrmMenu();

            menu.ShowDialog();
            this.Close();
        }
Beispiel #2
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            LoginBLL control    = new LoginBLL();
            var      existenoBD = control.checar(txtCampoUsuario.Text, txtCampoSenha.Text);

            if (existenoBD)
            {
                this.Hide();
                View.FrmMenu menu = new View.FrmMenu();
                menu.ShowDialog();
                this.Close();
                txtCampoUsuario.Clear();
                txtCampoSenha.Clear();
            }
            else
            {
                MessageBox.Show("Verificar Login e/ou Senha", "ERRO!", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }