Пример #1
0
 private void SetValidationRules()
 {
     CustomIsBlankValidationRule isBlankValidationRule = new CustomIsBlankValidationRule();
     isBlankValidationRule.ErrorText = "The dialog name cannot be empty";
     isBlankValidationRule.ErrorType = ErrorType.Critical;
     dxValidationProvider1.SetValidationRule(textEditDialogname, isBlankValidationRule);
     isBlankValidationRule = new CustomIsBlankValidationRule();
     isBlankValidationRule.ErrorText = "The subcampaign cannot be empty";
     isBlankValidationRule.ErrorType = ErrorType.Critical;
     dxValidationProvider1.SetValidationRule(lookUpEditSubcampaigns, isBlankValidationRule);
     isBlankValidationRule = new CustomIsBlankValidationRule();
 }
Пример #2
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);
 }
Пример #3
0
 private void SetValidationRules()
 {
     CustomIsBlankValidationRule isBlankValidationRule = new CustomIsBlankValidationRule();
     isBlankValidationRule.ErrorText = "View name cannot be empty";
     isBlankValidationRule.ErrorType = ErrorType.Critical;
     dxValidationProvider1.SetValidationRule(txtTemplateName, isBlankValidationRule);
 }
Пример #4
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);
 }
Пример #5
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);
 }