}//----------------------------- //#####################################################END COMBOBOX cboYearLevel EVENTS ################################################################# //#####################################################LINKLABEL lnkCreateYearLevel EVENTS ################################################################# //event is raised when the control is clicked private void lnkCreateYearLevelLinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { try { if (this.ValidateControls()) { String strMsg = "Are you sure you want to create a new school fee year level in " + this.cboYearLevel.Text + "?"; DialogResult msgResult = MessageBox.Show(strMsg, "Confirm Create", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question); if (msgResult == DialogResult.Yes) { strMsg = "The New School Fee Year Level in " + this.cboYearLevel.Text + " has been successfully recorded."; this.Cursor = Cursors.WaitCursor; _schoolFeeManager.InsertSchoolFeeLevel(_userInfo, ref _levelInfo); _detailsInfo.SchoolFeeLevelInfo.FeeLevelSysId = _levelInfo.FeeLevelSysId; this.Cursor = Cursors.Arrow; MessageBox.Show(strMsg, "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); this.lnkCreateYearLevel.Visible = false; this.dgvSchoolFees.Enabled = this.lnkCreateSchoolFeeDetails.Visible = true; } } } catch (Exception ex) { RemoteClient.ProcStatic.ShowErrorDialog(ex.Message + "\n\nError Creating new School Fee Year Level", "Error Creating"); } }//-----------------------------