Пример #1
0
 private static void buttonGoBack_Click(object sender, EventArgs e)
 {
     if (goBackToCourseEnrollmentPage)
     {
         Program.getStaffForm().setCurrentSelectedLabel(2);
         hideAllComponents();
         CourseEnrollmentForm.showAllComponents();
     }
     else
     {
         resetFeePaymentInformation();
     }
 }
Пример #2
0
        private static void buttonEnrollCourse_Click(object sender, EventArgs e)
        {
            if (selectedStudent == null)
            {
                MessageBox.Show("An error occurred while doing this process");
                return;
            }
            Program.getStaffForm().setCurrentSelectedLabel(2);
            hideAllComponents();
            CourseEnrollmentForm.updateCoursesTable(false);
            CourseEnrollmentForm.showAllComponents();
            CourseEnrollmentForm.setSelectedStudent(selectedStudent);

            StudentRegistrationForm.resetStudentInformation();
            StudentAccountForm.resetAccountInformation();
            resetAccountInformation();
        }