Beispiel #1
0
        public void logout()
        {
            this.panelLogout.Focus();
            // Registration
            StudentRegistrationForm.disposeAllComponents();
            StudentAccountForm.disposeAllComponents();
            StudentInformationForm.disposeAllComponents();
            resetStudentRegistrationTextBoxes();

            // Course Enrollment
            CourseEnrollmentForm.disposeAllComponents();
            CourseEnrollmentForm.resetCourseEnrollmentInformation();
            // Fee Payment
            FeePaymentForm.disposeAllComponents();
            FeePaymentForm.resetFeePaymentInformation();

            Program.getStaffForm().Hide();
            Program.initLoginForm();
            Program.getLoginForm().ShowDialog();
            Program.getStaffForm().Close();
            User.setCurrentUser(null);
        }
Beispiel #2
0
        // Fee Payment Label
        private void labelFeePayment_Click(object sender, EventArgs e)
        {
            if (currentSelectedLabel == this.labelFeePayment)
            {
                return;
            }
            this.labelFeePayment.Focus();
            restoreAndAddAnimation(this.labelFeePayment);
            currentSelectedLabel = this.labelFeePayment;
            // Registration
            StudentRegistrationForm.hideAllComponents();
            StudentAccountForm.hideAllComponents();
            StudentInformationForm.hideAllComponents();
            resetStudentRegistrationTextBoxes();

            // Course Enrollment
            CourseEnrollmentForm.hideAllComponents();
            CourseEnrollmentForm.resetCourseEnrollmentInformation();

            FeePaymentForm.showAllComponents();
            FeePaymentForm.hideSomeComponents();
        }
Beispiel #3
0
 private void resetStudentRegistrationTextBoxes()
 {
     StudentRegistrationForm.resetStudentInformation();
     StudentAccountForm.resetAccountInformation();
 }