Пример #1
0
        void InitValidation()
        {
            UniqueNameValidationRule rule = new UniqueNameValidationRule(uniqueNames);

            rule.ErrorType = ErrorType.Critical;
            rule.ErrorText = Properties.Resources.RuleUniqueNamesWarning;
            dxValidationProvider1.SetValidationRule(teCaption, rule);
            dxValidationProvider1.SetValidationRule(cbeGroup, ValidationRulesHelper.RuleIsNotBlank);
            dxValidationProvider1.SetValidationRule(heLink, ValidationRulesHelper.RuleIsNotBlank);
            cbeGroup.EditValueChanged  += new EventHandler(edit_EditValueChanged);
            teCaption.EditValueChanged += new EventHandler(edit_EditValueChanged);
            heLink.EditValueChanged    += new EventHandler(edit_EditValueChanged);
        }
Пример #2
0
 void InitValidation()
 {
     UniqueNameValidationRule rule = new UniqueNameValidationRule(uniqueNames);
     rule.ErrorType = ErrorType.Critical;
     rule.ErrorText = Properties.Resources.RuleUniqueNamesWarning;
     dxValidationProvider1.SetValidationRule(teCaption, rule);
     dxValidationProvider1.SetValidationRule(cbeGroup, ValidationRulesHelper.RuleIsNotBlank);
     dxValidationProvider1.SetValidationRule(heLink, ValidationRulesHelper.RuleIsNotBlank);
     cbeGroup.EditValueChanged += new EventHandler(edit_EditValueChanged);
     teCaption.EditValueChanged += new EventHandler(edit_EditValueChanged);
     heLink.EditValueChanged += new EventHandler(edit_EditValueChanged);
 }