Esempio n. 1
0
 // Gets the lowest common ancestor (LCA)  for the 2 hit path
 private TNode HitPathsGetLowestCommonAncestor()
 {
     if (DragToNodeHitPath == null || DragFromNodeHitPath == null)
     {
         return(null);
     }
     for (int i = DragToNodeHitPath.Count - 1; i >= 0; --i)
     {
         if (DragFromNodeHitPath.Contains(DragToNodeHitPath[i]))
         {
             return(DragToNodeHitPath[i].As <TNode>());
         }
     }
     return(null);
 }