Beispiel #1
0
 private static void buttonNewRegistration_Click(object sender, EventArgs e)
 {
     hideAllComponents();
     StudentRegistrationForm.resetStudentInformation();
     StudentAccountForm.resetAccountInformation();
     resetAccountInformation();
     StudentRegistrationForm.showAllComponents();
 }
Beispiel #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();
        }