Beispiel #1
0
        // Checks if the match exists on the given path element
        // Finding none, looks for any other matches
        public bool TaskFromMatch(PathElement elem, MatchResult match, out MatchResult result)
        {
            ITaskAcceptor acceptor = elem.Object as ITaskAcceptor;

            result = (match == null || acceptor == null)
                                ? null
                                : TaskMatcher.GetPerformable(match, performer, acceptor);
            return(result != null);
        }
Beispiel #2
0
        // Finds a match on the given path element
        // (optional) if mustBeEnabled is false, also searches for disabled tasks
        public bool TaskFromPathElement(PathElement elem, out MatchResult result, bool mustBeEnabled = true)
        {
            ITaskAcceptor acceptor = elem.Object as ITaskAcceptor;

            result = (acceptor == null)
                                ? null
                                : TaskMatcher.GetPerformable(performer, acceptor, mustBeEnabled);
            return(result != null);
        }