示例#1
0
 internal void Remove(ValidationRuleInfo rule)
 {
     for (int i = base.Count - 1; i >= 0; i--)
     {
         if (base[i].RuleName == rule.RuleName)
         {
             base.RemoveAt(i);
             break;
         }
     }
 }
示例#2
0
 internal BrokenRule(ValidationRuleInfo rule)
 {
     this._ruleName    = rule.RuleName;
     this._description = rule.ValidationRuleArgs.Description;
     this._property    = rule.ValidationRuleArgs.PropertyName;
 }
示例#3
0
 internal void Add(ValidationRuleInfo rule)
 {
     this.Remove(rule);
     base.Add(new BrokenRule(rule));
 }