使用PointBase代替Point

This commit is contained in:
艾竹
2023-01-08 09:22:37 +08:00
parent 8fc69bc96d
commit 5d7717cc2b
65 changed files with 4317 additions and 403 deletions

View File

@@ -25,13 +25,13 @@ namespace AIStudio.Wpf.DiagramDesigner
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
List<PointInfoBase> points = (List<PointInfoBase>)value;
List<ConnectorPoint> points = (List<ConnectorPoint>)value;
PointCollection pointCollection = new PointCollection();
if (points != null)
{
foreach (var point in points)
{
pointCollection.Add(point);
pointCollection.Add(new Point(point.X, point.Y));
}
}
return pointCollection;