Ejemplo n.º 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";
            }
        }
Ejemplo n.º 2
0
 private void btnVoltar_Click(object sender, EventArgs e)
 {
     Telas.FrmMenu menu = new FrmMenu();
     menu.Show();
     Close();
 }
Ejemplo n.º 3
0
 private void buttonEntrar_Click(object sender, EventArgs e)
 {
     Telas.FrmMenu menu = new Telas.FrmMenu();
     this.Visible = false;
     menu.Show();
 }
Ejemplo n.º 4
0
 private void button1_Click(object sender, EventArgs e)
 {
     Telas.FrmMenu menu = new Telas.FrmMenu();
     menu.Show();
 }