分组,取消分组 ReDo UnDo 整理

This commit is contained in:
艾竹
2023-04-08 21:48:43 +08:00
parent fa96573cbd
commit 8ad42aec49
15 changed files with 123 additions and 62 deletions

View File

@@ -66,23 +66,13 @@ namespace AIStudio.Wpf.DiagramDesigner
UnDoActionStack = new Stack<Command>();
}
private bool _beginDo;
public bool BeginDo
{
get
{
return _beginDo;
}
set
{
_beginDo = value;
}
}
public int BeginDo;
private bool _undoing;
public void DoNewCommand(string name, Action action, Action unDoAction, Action clearAction = null, bool doit = true)
{
if (BeginDo == true)
if (BeginDo > 0)
return;
if (_undoing == true)
return;