Пример #1
0
        private void buttonEntrar_Click(object sender, EventArgs e)
        {
            CrudFuncionario CrudFunc = new CrudFuncionario();

            DataTable tabela = CrudFunc.consultaFuncionario("select * from funcionario where apelido = '"+textUsuario.Text+"' and senha = '"+textSenha.Text+"'");

            if (tabela.Rows.Count>0)
            {

                Telas.FrmMenu menu = new Telas.FrmMenu();
                this.Visible = false;
                menu.Show();
            }
            else {
                textUsuario.Text = "Errado";
            }
        }
Пример #2
0
 private void btnVoltar_Click(object sender, EventArgs e)
 {
     Telas.FrmMenu menu = new FrmMenu();
     menu.Show();
     Close();
 }
Пример #3
0
 private void buttonEntrar_Click(object sender, EventArgs e)
 {
     Telas.FrmMenu menu = new Telas.FrmMenu();
     this.Visible = false;
     menu.Show();
 }
Пример #4
0
 private void button1_Click(object sender, EventArgs e)
 {
     Telas.FrmMenu menu = new Telas.FrmMenu();
     menu.Show();
 }