예제 #1
0
        //called when data for any output pin is requested
        public void Evaluate(int SpreadMax)
        {
            if (!FSearchPaths.IsChanged)
            {
                return;
            }

            foreach (var p in FLastPaths)
            {
                NodeCollection.RemoveCombined(p);
            }

            FLastPaths.Clear();

            foreach (var p in FSearchPaths)
            {
                NodeCollection.AddCombined(p, true);
                FLastPaths.Add(p);
            }

            NodeCollection.Collect();

            var nodeInfos =
                from nodeInfo in FNodesInfoFactory.NodeInfos
                where !nodeInfo.Ignore
                select nodeInfo.Systemname;

            FNodes.AssignFrom(nodeInfos);
            FCollectedPaths.AssignFrom(NodeCollection.Paths.Select(sp => sp.Dir));
        }
예제 #2
0
 public void AddSearchPath(string path)
 {
     NodeCollection.AddCombined(path, false);
     NodeCollection.Collect();
 }