public bool Validate(T data) { var results = RootRule.Validate(data).Where(r => !r.IsPositive); ValidationResult = results.Any() ? new ValidationResult(results) : ValidationResult.Empty; return(ValidationResult.IsValid); }
public RuleTreeController(TreeView nodeTree) { _nodeTree = nodeTree; InitializeIconRegistry(); ShowVirtualRoot = true; _rootData = new RootRule(); RefreshTree(); }