コード例 #1
0
 public void DeleteRuleConstraint(string name)
 {
     RuleConstraintValues.Where(x => x.Name == name).ToList().ForEach(x => RuleConstraintValues.Remove(x));
     UpdateRuleConstraints();
 }
コード例 #2
0
 public void RemoveInvalidConstraints()
 {
     RuleConstraintValues.Where(x => string.IsNullOrEmpty(x.Left) || string.IsNullOrEmpty(x.Operation)).ToList().ForEach(x => RuleConstraintValues.Remove(x));
     UpdateRuleConstraints();
 }