Пример #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);
 }
Пример #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);
 }
Пример #3
0
 private void SetValidationRules()
 {
     CustomIsBlankValidationRule isBlankValidationRule = new CustomIsBlankValidationRule();
     isBlankValidationRule.ErrorText = "The answerform name cannot be empty";
     isBlankValidationRule.ErrorType = ErrorType.Critical;
     dxValidationProvider1.SetValidationRule(textEditAnswerFormName, isBlankValidationRule);
     isBlankValidationRule = new CustomIsBlankValidationRule();
     isBlankValidationRule.ErrorText = "The language cannot be empty";
     isBlankValidationRule.ErrorType = ErrorType.Critical;
     dxValidationProvider1.SetValidationRule(lookUpEditLanguage, isBlankValidationRule);
     isBlankValidationRule = new CustomIsBlankValidationRule();
     isBlankValidationRule.ErrorText = "The component type cannot be empty";
     isBlankValidationRule.ErrorType = ErrorType.Critical;
     dxValidationProvider1.SetValidationRule(comboBoxEditComponentType, isBlankValidationRule);
 }
Пример #4
0
 private void SetValidationRules()
 {
     CustomIsBlankValidationRule isBlankValidationRule = new CustomIsBlankValidationRule();
     isBlankValidationRule.ErrorText = "The answerform name cannot be empty";
     isBlankValidationRule.ErrorType = ErrorType.Critical;
     dxValidationProvider1.SetValidationRule(textEditDialogname, isBlankValidationRule);
     isBlankValidationRule = new CustomIsBlankValidationRule();
     isBlankValidationRule.ErrorText = "The language cannot be empty";
     isBlankValidationRule.ErrorType = ErrorType.Critical;
     dxValidationProvider1.SetValidationRule(lookUpEditSource, isBlankValidationRule);
 }