} //----------------------------------- //#####################################################END CHECKEBOX chkEntryLevelIncluded EVENTS##################################################### #endregion #region Programers-Defined Functions //this fucntion will validate Controls public Boolean ValidateControls() { Boolean isValid = true; _errProvider.SetError(cboFeeCategory, ""); _errProvider.SetError(txtParticularDescription, ""); if (cboFeeCategory.SelectedIndex == -1) { _errProvider.SetIconAlignment(cboFeeCategory, ErrorIconAlignment.MiddleRight); _errProvider.SetError(cboFeeCategory, "A Fee Category is required."); isValid = false; } if (String.IsNullOrEmpty(_particularInfo.ParticularDescription)) { _errProvider.SetIconAlignment(txtParticularDescription, ErrorIconAlignment.MiddleRight); _errProvider.SetError(txtParticularDescription, "A Particular Description is required."); isValid = false; } if (_schoolFeeManager.IsExistParticularDescriptionSchoolFeeParticular(_userInfo, _particularInfo.FeeParticularSysId, _particularInfo.ParticularDescription)) { _errProvider.SetIconAlignment(txtParticularDescription, ErrorIconAlignment.MiddleRight); _errProvider.SetError(txtParticularDescription, "A Particular Description already exist."); isValid = false; } return(isValid); }//=----------------------------------