mind序列化完善中

This commit is contained in:
艾竹
2023-03-08 23:02:50 +08:00
parent c80923d19c
commit e4f6335224
11 changed files with 74 additions and 40 deletions

View File

@@ -784,7 +784,7 @@ namespace AIStudio.Wpf.DiagramDesigner
}
private SimpleCommand _deleteCommand;
public SimpleCommand DeleteCommand
public virtual SimpleCommand DeleteCommand
{
get
{
@@ -955,7 +955,7 @@ namespace AIStudio.Wpf.DiagramDesigner
}
#endregion
public DoCommandManager DoCommandManager = new DoCommandManager();
protected DoCommandManager DoCommandManager = new DoCommandManager();
public event DiagramEventHandler Event;
@@ -989,6 +989,13 @@ namespace AIStudio.Wpf.DiagramDesigner
PhysicalGridMarginSize = diagramItem.PhysicalGridMarginSize;
GridColor = diagramItem.GridColor;
AllowDrop = diagramItem.AllowDrop;
Init();
}
public virtual void Init()
{
DoCommandManager.Init();
}
public virtual bool ExecuteEnable(object para)
@@ -2087,12 +2094,12 @@ namespace AIStudio.Wpf.DiagramDesigner
return true;
}
private void ExecuteDeleteCommand(object parameter)
protected void ExecuteDeleteCommand(object parameter)
{
Delete(parameter);
}
private bool Delete(object parameter)
protected virtual bool Delete(object parameter)
{
List<SelectableDesignerItemViewModelBase> itemsToRemove;