예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            frmNotas frm   = new frmNotas();
            Login    login = new Login();
            clsLogin clsl  = new clsLogin();

            login.User = txtUser.Text;
            login.Pass = txtContra.Text;
            Boolean ok = clsl.entrar(login);

            if (ok == true)
            {
                MessageBox.Show("WELCOME");
                frm.Show();
            }
            else
            {
                MessageBox.Show("Stop");
            }
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Login    login = new Login();
            clsLogin clsl  = new clsLogin();

            login.User = textUser.Text;
            login.Pass = textContra.Text;
            Boolean ok = clsl.entrar(login);

            if (ok == true)
            {
                MessageBox.Show("welcome");
            }
            else
            {
                MessageBox.Show("stop");
            }
            {
            }
        }