public void logout() { this.panelLogout.Focus(); // Profile StudentProfileForm.disposeAllComponents(); StudentEditProfileForm.disposeAllComponents(); // Timetable StudentTimetableForm.disposeAllComponents(); StudentTimetableForm.resetStudentTimetableInformation(); // Fees StudentViewFeesForm.disposeAllComponents(); StudentViewFeesForm.resetStudentFeesInformation(); Program.getStudentForm().Hide(); Program.initLoginForm(); Program.getLoginForm().ShowDialog(); Program.getStudentForm().Close(); User.setCurrentUser(null); }
// Timetable Label private void labelTimetable_Click(object sender, EventArgs e) { if (currentSelectedLabel == this.labelTimetable) { return; } this.labelTimetable.Focus(); restoreAndAddAnimation(this.labelTimetable); currentSelectedLabel = this.labelTimetable; // Profile StudentProfileForm.hideAllComponents(); StudentProfileForm.resetProfileInformation(); StudentEditProfileForm.hideAllComponents(); StudentEditProfileForm.resetEditProfileInformation(); // Fees StudentViewFeesForm.hideAllComponents(); StudentViewFeesForm.resetStudentFeesInformation(); StudentTimetableForm.updateStudentInformation(); StudentTimetableForm.showAllComponents(); }