Exemplo n.º 1
0
 public void DeleteChildrenOnPaint(GraphItem child)
 {
     lock (ToBeDeleteChildren)
     {
         ToBeDeleteChildren.Add(child);
     }
 }
Exemplo n.º 2
0
 public static GraphItem Select(Point point, GraphItem root)
 {
     if (root == null)
     {
         return(null);
     }
     if (root.IsContain(point))
     {
         return(root);
     }
     if (root.Children == null)
     {
         return(null);
     }
     foreach (GraphItem gi in root.Children)
     {
         if (Select(point, gi) != null)
         {
             return(gi);
         }
     }
     return(null);
 }