Ejemplo n.º 1
0
 // handle unconnected Links that use dummy Nodes as placeholders
 private void Move(Node n, Point pos)
 {
     if (n.Tag is Link)
     {
         Link l  = (Link)n.Tag;
         Rect lb = Geo.Bounds(l.Route.Points);
         l.Route.MovePoints(new Point(pos.X - lb.X, pos.Y - lb.Y));
         l.Remeasure();
     }
     else
     {
         n.Move(pos, true);
     }
 }