Ejemplo n.º 1
0
 private static bool WindowOccuredInPath(LinkedAvidNode node, AvidModelWindow window)
 {
     return node.GetBranch().Any(lan => lan.Window.Equals(window));
 }
Ejemplo n.º 2
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;
 }