// Student Profile Label private void labelStudentProfile_Click(object sender, EventArgs e) { if (currentSelectedLabel == this.labelStudentProfile) { return; } this.labelStudentProfile.Focus(); restoreAndAddAnimation(this.labelStudentProfile); currentSelectedLabel = this.labelStudentProfile; // Class Schedule TutorClassScheduleForm.hideAllComponents(); TutorClassScheduleForm.resetClassScheduleInformation(); TutorNewClassScheduleForm.hideAllComponents(); TutorNewClassScheduleForm.resetNewClassScheduleInformation(); TutorStudentProfileForm.showAllComponents(); TutorStudentProfileForm.updateTutorInformation(); }
public void logout() { this.panelLogout.Focus(); // Class Schedule TutorClassScheduleForm.disposeAllComponents(); TutorClassScheduleForm.resetClassScheduleInformation(); TutorNewClassScheduleForm.disposeAllComponents(); TutorNewClassScheduleForm.resetNewClassScheduleInformation(); // Student Profile TutorStudentProfileForm.disposeAllComponents(); TutorStudentProfileForm.resetStudentProfileInformation(); TutorViewStudentProfileForm.disposeAllComponents(); Program.getTutorForm().Hide(); Program.initLoginForm(); Program.getLoginForm().ShowDialog(); Program.getTutorForm().Close(); User.setCurrentUser(null); }