// 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(); }
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); }