private static void buttonNewRegistration_Click(object sender, EventArgs e) { hideAllComponents(); StudentRegistrationForm.resetStudentInformation(); StudentAccountForm.resetAccountInformation(); resetAccountInformation(); StudentRegistrationForm.showAllComponents(); }
private static void buttonNext_Click(object sender, EventArgs e) { string studentName = textBoxStudentName.Text; DateTime dateOfBirth = dateTimePicker1.Value; string email = textBoxEmail.Text; string contact = textBoxContactNumber.Text; if (studentName == "" || dateOfBirth == null || email == "" || contact == "") { MessageBox.Show("Please fill in student's information!"); return; } hideAllComponents(); StudentAccountForm.showAllComponents(); }
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(); }