public SpecialClassUpdate(CommonExchange.SysAccess userInfo, CommonExchange.SpecialClassInformation specialInfo, SpecialClassLogic specialManager) : base(userInfo, specialManager) { this.InitializeComponent(); _specialInfo = specialInfo; _specialInfoTemp = (CommonExchange.SpecialClassInformation)specialInfo.Clone(); this.FormClosing += new FormClosingEventHandler(ClassClosing); this.btnClose.Click += new EventHandler(btnCloseClick); this.btnUpdate.Click += new EventHandler(btnUpdateClick); this.btnDelete.Click += new EventHandler(btnDeleteClick); }
//############################################CLASS SpecialClass EVENTS####################################################### //event is raised when the class is loaded protected virtual void ClassLoad(object sender, EventArgs e) { if (_specialManager.MustOpenSchoolYearSemester()) { RemoteClient.ProcStatic.ShowErrorDialog("Please open another school year / semester before creating a new special class.", "Error Creating A Special Class"); _hasErrors = true; this.Close(); } _specialInfo = new CommonExchange.SpecialClassInformation(); this.cboYearSemester.Enabled = false; this.txtAmount.Text = "0.00"; this.lblCountEnrolled.Text = "0 Student"; this.lblCountWithdrawn.Text = "0 Student"; _canWithdraw = RemoteServerLib.ProcStatic.IsSystemAccessCollegeRegistrar(_userInfo) ? false : true; } //-------------------------------