private bool CheckUserPassword() { BE_LoginUser PasswordCheckObj = new BE_LoginUser(); BP_LoginUser PasswordObj = new BP_LoginUser(); PasswordCheckObj.UserName = txtUserName.Text; PasswordCheckObj.Password = txtPassword.Text; PasswordCheck = PasswordObj.CheckUserPassword(PasswordCheckObj); return(PasswordCheck); }
private void SetUsers() { BE_LoginUser NewLoginObj = new BE_LoginUser(); //GlobalVaribles gblVar = new GlobalVaribles(); BP_LoginUser GlobalBPObj = new BP_LoginUser(); NewLoginObj.UserName = txtUserName.Text; //gblVar.Style = cboStyles.Text; DataTable dt = new DataTable(); dt = GlobalBPObj.GetUserDetail(NewLoginObj); if (dt.Rows.Count > 0) { GlobalVaribles.UserID = Convert.ToInt32(dt.Rows[0]["UserID"]); GlobalVaribles.UserStatus = dt.Rows[0]["UserStatus"].ToString(); GlobalVaribles.UserName = dt.Rows[0]["UserName"].ToString(); //txtUserID.Text = GlobalVaribles.UserID.ToString(); GlobalVaribles.dtSetUser = dt.Copy(); SetMenu(GlobalVaribles.UserID); } }