mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-03 00:00:57 +08:00
mind序列化完善中
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user