示例#1
0
        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);
        }