Esempio n. 1
0
        // Đăng nhập
        private void tbdnbttdongy_Click(object sender, EventArgs e)
        {
            UDQLDataContext ql = new UDQLDataContext();
            int             i  = ql.cau1(tbdntxtmatkhau.Text, tbdntxttaikhoan.Text);

            if (i == 0)
            {
                MessageBox.Show("mật khẩu không chính xác");
                return;
            }

            username = tbdntxttaikhoan.Text;
            password = tbdntxtmatkhau.Text;
            login.i  = 1;
            this.Close();
        }