Esempio n. 1
0
 private void SetValidationRules()
 {
     CustomIsBlankValidationRule isBlankValidationRule = new CustomIsBlankValidationRule();
     isBlankValidationRule.ErrorText = "The tag name field cannot be empty";
     isBlankValidationRule.ErrorType = ErrorType.Critical;
     dxValidationProvider1.SetValidationRule(textEditTagname, isBlankValidationRule);
 }
Esempio n. 2
0
 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);
 }