Example #1
0
        public void login()
        {
            int a;

            ent.usuario = textBox1.Text;
            ent.pasword = textBox2.Text;
            a           = neg.N_login(ent);
            if (a == 1)
            {
                Form2 frm = new Form2();
                frm.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("usuario/contraseƱa incorrecto...");
            }
        }
Example #2
0
        public void login()
        {
            int a;

            ent.usuario = textBox1.Text;
            ent.pasword = textBox2.Text;
            a           = ng.N_login(ent);

            if (a == 1)
            {
                Form2 frm = new Form2();
                frm.Show();
                this.Hide();
            }

            else
            {
                MessageBox.Show("USUARIO/PASWORD INCORRECTO");
            }
        }