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); }
// Profile Label private void labelProfile_Click(object sender, EventArgs e) { if (currentSelectedLabel == this.labelProfile) { return; } this.labelProfile.Focus(); restoreAndAddAnimation(this.labelProfile); currentSelectedLabel = this.labelProfile; // Timetable StudentTimetableForm.hideAllComponents(); StudentTimetableForm.resetStudentTimetableInformation(); // Fees StudentViewFeesForm.hideAllComponents(); StudentViewFeesForm.resetStudentFeesInformation(); StudentProfileForm.showAllComponents(); StudentProfileForm.updateStudentInformation(); }
// Fees Label private void labelFees_Click(object sender, EventArgs e) { if (currentSelectedLabel == this.labelFees) { return; } this.labelFees.Focus(); restoreAndAddAnimation(this.labelFees); currentSelectedLabel = this.labelFees; // Profile StudentProfileForm.hideAllComponents(); StudentProfileForm.resetProfileInformation(); StudentEditProfileForm.hideAllComponents(); StudentEditProfileForm.resetEditProfileInformation(); // Timetable StudentTimetableForm.hideAllComponents(); StudentTimetableForm.resetStudentTimetableInformation(); StudentViewFeesForm.updateStudentInformation(); StudentViewFeesForm.showAllComponents(); StudentViewFeesForm.updateOutstandingBalance(); }