예제 #1
0
        private AvidPathInfo TracePath(LinkedAvidNode leaf, AvidModelWindow start, AvidModelWindow destination)
        {
            var pathInfo = new AvidPathInfo(leaf.NodeDistance, start, destination);

            pathInfo.PathNodes.AddRange(leaf.GetBranch());
            pathInfo.PathNodes.Reverse();
            return(pathInfo);
        }
예제 #2
0
 private static bool WindowOccuredInPath(LinkedAvidNode node, AvidModelWindow window)
 {
     return(node.GetBranch().Any(lan => lan.Window.Equals(window)));
 }