/// <summary> /// /// </summary> /// <param name="dataControlName"></param> public void RemoveValidation(string dataControlName) { if (m_helper == null) { m_helper = new ValidationHelper(this); } m_helper.RemoveValidation(dataControlName); }
/// <summary> /// AddValidationExpression /// </summary> /// <param name="dataControlName"></param> /// <param name="expression"></param> public void SetValidation(string dataControlName, Xceed.Validation.ValidationExpression expression) { if (m_helper == null) { m_helper = new ValidationHelper(this); } m_helper.SetValidation(dataControlName, expression); }
/// <summary> /// /// </summary> /// <param name="disposing"></param> protected override void Dispose(bool disposing) { if (disposing) { if (m_helper != null) { m_helper.Dispose(); m_helper = null; } } base.Dispose(disposing); }
internal static bool CheckControlValue(IControlManager cm, ValidationHelper helper, IDataControl dc) { bool ret = true; if (!dc.ReadOnly) { string errMsg = helper.ValidateControl(dc.Name); cm.ControlCheckExceptionProcess.ShowError(dc, errMsg); if (!string.IsNullOrEmpty(errMsg)) { ret = false; } } return ret; }