Create a "smart" connection line.

Aug 21, 2012 at 1:38 PM

I need create connection line as "smart" in examples http://www.silverdiagram.net/Scripts/SD.Editor.html
I can't find needed class.

Aug 21, 2012 at 1:57 PM

I've done!

Connection connection1 = new Connection
      {
        PathCalculator = new OrthogonalPathCalculator(),
        Path = new PathData(PathDataType.Orthogonal),
        SinkDecorator = LineEndDecoratorType.Arrow,
        Source = new ConnectionPoint {ConnectedNode = r1, ConnectorIndex = 3},
        Sink = new ConnectionPoint { ConnectedNode = myNode, ConnectorIndex = 0 }
      };