예제 #1
0
        public TargetList ListWithOptTag(string tagstr)
        {
            int tag = -1;

            if (tagstr == null)
            {
                return(ListAll());
            }

            tag = graph.GetTagId(tagstr);

            if (tag < 0)
            {
                // Tag not defined, so nothing has it
                return(TargetList.Null);
            }

            // FromTagInfos gives us those marked with the tag;
            // FilterTag checks that the tag value is true.

            return(new TargetList(FromTagInfos(graph.GetTargetsWithTag(tag))).FilterTag(tag));
        }
예제 #2
0
 public IEnumerable <TargetTagInfo> GetTargetsWithTag(int tag)
 {
     n_GetTargetsWithTag++;
     return(inner.GetTargetsWithTag(tag));
 }