调整了一下各种命令的位置,便于其他应用调用

This commit is contained in:
艾竹
2022-12-08 20:54:45 +08:00
parent 9a8d4c95f0
commit 9f91fbcdd3
41 changed files with 1363 additions and 769 deletions

View File

@@ -6,6 +6,7 @@ using System.ComponentModel;
using System.Windows;
using System.Linq;
using System.Reactive.Linq;
using AIStudio.Wpf.DiagramDesigner.Models;
namespace AIStudio.Wpf.DiagramDesigner
{
@@ -19,6 +20,10 @@ namespace AIStudio.Wpf.DiagramDesigner
{
}
public DesignerItemViewModelBase(IDiagramViewModel parent, string json) : base(parent, json)
{
}
protected override void Init()
{
base.Init();
@@ -42,6 +47,16 @@ namespace AIStudio.Wpf.DiagramDesigner
this.Icon = designer.Icon;
}
public override SelectableDesignerItemBase ToXmlObject()
{
return new DesignerItemBase(this);
}
public override Type ToXmlType()
{
return typeof(DesignerItemBase);
}
protected virtual void InitConnector()
{
connectors.Add(new FullyCreatedConnectorInfo(this, ConnectorOrientation.Top));