offset修复一半

This commit is contained in:
艾竹
2023-03-28 23:16:56 +08:00
parent 72da084f15
commit b4d7f13111
10 changed files with 139 additions and 108 deletions

View File

@@ -66,9 +66,17 @@ namespace AIStudio.Wpf.DiagramDesigner
UnDoActionStack = new Stack<Command>();
}
private bool _beginDo;
public bool BeginDo
{
get;set;
get
{
return _beginDo;
}
set
{
_beginDo = value;
}
}
private bool _undoing;
@@ -76,7 +84,7 @@ namespace AIStudio.Wpf.DiagramDesigner
{
if (BeginDo == true)
return;
if (_undoing == true)
if (_undoing == true)
return;
try
{
@@ -111,7 +119,7 @@ namespace AIStudio.Wpf.DiagramDesigner
if (!CanUnDo)
return;
if (_undoing == true)
if (_undoing == true)
return;
try
{