整理Redo和Undo命令

This commit is contained in:
艾竹
2023-04-05 23:40:22 +08:00
parent c513bd0f64
commit e0a26a76d2
4 changed files with 314 additions and 197 deletions

View File

@@ -390,6 +390,8 @@ namespace AIStudio.Wpf.DiagramDesigner
if (_viewModel.IsReadOnly) return;
this.Focus();
Point currentPoint = e.GetPosition(this);
_viewModel.CurrentPoint = new Point(ScreenHelper.WidthToMm(currentPoint.X), ScreenHelper.WidthToMm(currentPoint.Y));
var point = CursorPointManager.GetCursorPosition();
@@ -445,8 +447,9 @@ namespace AIStudio.Wpf.DiagramDesigner
adornerLayer.Add(adorner);
}
}
}
}
}
//e.Handled = true;
}
@@ -456,6 +459,8 @@ namespace AIStudio.Wpf.DiagramDesigner
if (_viewModel.IsReadOnly) return;
this.Focus();
if (_service.DrawModeViewModel.GetDrawMode() == DrawMode.DirectLine)
{
return;