Example #1
0
 private static void UpdateVertexEdges(VertexControl vc)
 {
     if (vc != null && vc.Vertex != null)
     {
         var ra = vc.RootArea;
         if (ra == null)
         {
             throw new GX_InvalidDataException("OnDragFinished() - IGraphControl object must always have RootArea property set!");
         }
         //if (ra.IsEdgeRoutingEnabled) ra.ComputeEdgeRoutesByVertex(vc);
         //foreach (var item in ra.GetRelatedControls(vc, GraphControlType.Edge, EdgesType.All))
         //{
         if (ra.IsEdgeRoutingEnabled)
         {
             ra.ComputeEdgeRoutesByVertex(vc);
             vc.InvalidateVisual();
         }
         // }
     }
 }
Example #2
0
 private static void UpdateVertexEdges(VertexControl vc)
 {
     if (vc != null)
     {
         var ra = vc.RootArea;
         if (ra == null) throw new GX_InvalidDataException("OnDragFinished() - IGraphControl object must always have RootArea property set!");
         //if (ra.IsEdgeRoutingEnabled) ra.ComputeEdgeRoutesByVertex(vc);
         //foreach (var item in ra.GetRelatedControls(vc, GraphControlType.Edge, EdgesType.All))
         //{
             if (ra.IsEdgeRoutingEnabled)
             {
                 ra.ComputeEdgeRoutesByVertex(vc);
                 vc.InvalidateVisual();
             }
        // }
     }
 }