예제 #1
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            MainMenuForm form = new MainMenuForm(StaffId, permission);

            form.Show();
            this.Close();
        }
예제 #2
0
        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);
                    }
                }
            }
        }
예제 #3
0
 private void btnBack_Click(object sender, EventArgs e)
 {
     MainMenuForm form = new MainMenuForm(tempStaffId, tempPermission);
     form.Show();
     this.Close();
 }