private void btnBack_Click(object sender, EventArgs e) { MainMenuForm form = new MainMenuForm(StaffId, permission); form.Show(); this.Close(); }
private void btnLogin_Click(object sender, EventArgs e) { if (txtUsername.Text == null) { MessageBox.Show(SportRegistrationSystem.lblInvalidLogin); } else { if (txtPassword.Text == null) { MessageBox.Show(SportRegistrationSystem.lblInvalidPassword); } else { List<StaffClass> loginStatus = StaffBll.Login(txtUsername.Text, txtPassword.Text); if (loginStatus.Count() == 1) { MainMenuForm form = new MainMenuForm(loginStatus); form.Show(); this.Hide(); } else { MessageBox.Show(SportRegistrationSystem.lblLoginFailed); } } } }
private void btnBack_Click(object sender, EventArgs e) { MainMenuForm form = new MainMenuForm(tempStaffId, tempPermission); form.Show(); this.Close(); }