示例#1
0
        public bool DangNhap(string tenDangNhap, string matKhau)
        {
            var tK = data.ChiTiet(tenDangNhap, matKhau);

            if (tK.Rows.Count > 0)
            {
                frmMain.hoVaTen  = tK.Rows[0]["TENNV"].ToString();
                frmMain.quyenHan = int.Parse(tK.Rows[0]["QUYEN"].ToString());
                return(true);
            }
            else
            {
                return(false);
            }
        }