减少一层逻辑关系

This commit is contained in:
艾竹
2023-01-15 20:27:39 +08:00
parent 7d77864311
commit 5bdf10445f
9 changed files with 37 additions and 29 deletions

View File

@@ -9,18 +9,18 @@ namespace AIStudio.Wpf.DiagramDesigner
{
public class PartCreatedConnectionInfo : ConnectorInfoBase
{
private ConnectorPoint location;
public override ConnectorPoint Location
private PointBase position;
public override PointBase Position
{
get
{
return location;
return position;
}
}
public PartCreatedConnectionInfo(double X, double Y) : base(ConnectorOrientation.None)
{
this.location = new ConnectorPoint(X, Y);
this.position = new PointBase(X, Y);
}
}
}