private void SetValidationRules() { CustomIsBlankValidationRule isBlankValidationRule = new CustomIsBlankValidationRule(); isBlankValidationRule.ErrorText = "The tag name field cannot be empty"; isBlankValidationRule.ErrorType = ErrorType.Critical; dxValidationProvider1.SetValidationRule(textEditTagname, isBlankValidationRule); }
private void SetValidationRules() { CustomIsBlankValidationRule isBlankValidationRule = new CustomIsBlankValidationRule(); isBlankValidationRule.ErrorText = "The question field cannot be empty"; isBlankValidationRule.ErrorType = ErrorType.Critical; dxValidationProvider1.SetValidationRule(textEditQuestion, isBlankValidationRule); isBlankValidationRule = new CustomIsBlankValidationRule(); isBlankValidationRule.ErrorText = "The language cannot be empty"; isBlankValidationRule.ErrorType = ErrorType.Critical; dxValidationProvider1.SetValidationRule(lookUpEditLanguage, isBlankValidationRule); }