//####################################################CLASS SubjectSchedulingManager EVENTS############################################### //event is raised when the class is loaded private void ClassLoad(object sender, EventArgs e) { try { if (!(RemoteServerLib.ProcStatic.IsSystemAccessAdmin(_userInfo) || RemoteServerLib.ProcStatic.IsSystemAccessVpOfAcademicAffairs(_userInfo) || RemoteServerLib.ProcStatic.IsSystemAccessSecretaryOftheVpOfAcademicAffairs(_userInfo))) { throw new Exception("You are not authorized to access this module."); } _auxiliaryManager = new AuxiliaryServiceLogic(_userInfo); _frmServiceScheduleSearch = new AuxiliaryScheduleDetailsSearchList(); _frmServiceScheduleSearch.OnDoubleClickEnter += new SearchListDataGridDoubleClickEnter(_frmServiceScheduleSearchOnDoubleClickEnter); _frmServiceScheduleSearch.OnCreate += new AuxiliaryScheduleDetailsListLinkCreateClick(_frmServiceScheduleSearchOnCreate); _frmServiceScheduleSearch.LocationPoint = new Point(10, 300); _frmServiceScheduleSearch.AdoptGridSize = true; _frmServiceScheduleSearch.MdiParent = this; _auxiliaryManager.InitializeSchoolYearCombo(this.ctlManagerAux.SchoolYearComboBox); if (this.ctlManagerAux.SchoolYearIndex != -1) { _auxiliaryManager.InitializeSemesterCombo(this.ctlManagerAux.SemesterComboBox, this.ctlManagerAux.SchoolYearIndex); } lblRecordDate.Text = "Record Date: " + DateTime.Parse(_auxiliaryManager.ServerDateTime).ToString(); } catch (Exception ex) { RemoteClient.ProcStatic.ShowErrorDialog("\n" + ex.Message, "Error Authenticating"); this.Close(); } }//---------------------------------
}//------------------------------- //event is raised when option checked change private void ctlManagerOnOptionCheckedChanged() { if (this.ctlManagerAux.SchoolYearIndex != -1) { _auxiliaryManager.InitializeSchoolYearCombo(this.ctlManagerAux.SchoolYearComboBox); //_auxiliaryManager.InitializeSemesterCombo(this.ctlManagerAux.SemesterComboBox, this.ctlManagerAux.SchoolYearIndex); this.ShowSearchResultDialog(); } }//---------------------------