//#####################################################CLASS SCHOOLFEEMANAGER EVENTS ################################################################# //event is raised when the class is loaded private void ClassLoad(object sender, EventArgs e) { try { _schoolFeeManager = new SchoolFeeLogic(_userInfo); _feeInfo = new CommonExchange.SchoolFeeInformation(); if (!(RemoteServerLib.ProcStatic.IsSystemAccessAdmin(_userInfo) || RemoteServerLib.ProcStatic.IsSystemAccessVpOfFinance(_userInfo) || RemoteServerLib.ProcStatic.IsSystemAccessCashier(_userInfo))) { throw new Exception("You are not authorized to access this module."); } else { _schoolFeeManager.InitializeSchoolYearCombo(this.cboYear); if (String.IsNullOrEmpty(_feeInfo.SchoolYearInfo.YearId)) { this.lblStatus.Visible = this.btnRecord.Visible = false; } this.InitializeListViewControl(); } } catch (Exception ex) { RemoteClient.ProcStatic.ShowErrorDialog("\n" + ex.Message, "Error Authenticating"); this.Close(); } }//-----------------------------------