Ejemplo n.º 1
0
        public void HandleChange(IViewModel ownerVM, ChangeArgs args)
        {
            bool isExpectedChangeType = _changeTypes.Contains(args.ChangeType);

            if (!isExpectedChangeType)
            {
                return;
            }

            PathMatch sourcePathMatch = _sourcePath.Matches(args.ChangedPath);

            if (sourcePathMatch.Success)
            {
                _action.Execute(ownerVM, args, this);
            }
        }
        public bool IsTrue(ValidationRequest operand)
        {
            PathMatch match = _expectedTarget.Matches(operand.TargetPath);

            return(match.Success);
        }