private void btnLogin_Click(object sender, EventArgs e) { string username = txtUsername.TextValue; string password = txtPassword.TextValue; if (string.IsNullOrEmpty(username)) { MessageBox.Show("Please Enter Username"); return; } if (string.IsNullOrEmpty(password)) { MessageBox.Show("Please Enter Password"); return; } SiteSetupBL siteSetupBL = new SiteSetupBL(); User userAdaptr = siteSetupBL.GetUser(username, password); if (userAdaptr != null && userAdaptr.Id > 0) { loggedInUser = userAdaptr; isLoginSuccess = true; this.Close(); } else { MessageBox.Show("Username or Password is invalid"); } }
public GameController() { gameBussiness = new GameBL(); siteSetupBussiness = new SiteSetupBL(); }
public KeyGenerater() { siteSetupBL = new SiteSetupBL(); InitializeComponent(); }
public MarbleController() { siteSetup = new SiteSetupBL(); admin = new AdminBL(); }