コード例 #1
0
        private void ConnectComputers(NShape fromComputer, NShape toComputer, NGroup group)
        {
            NConnectorShapeFactory connectorShapes = new NConnectorShapeFactory();
            NShape lineShape = connectorShapes.CreateShape((int)ENConnectorShape.Line);

            lineShape.GlueBeginToShapeBoxIntersection(fromComputer);
            lineShape.GlueEndToShapeBoxIntersection(toComputer);
            group.Shapes.Add(lineShape);
        }