public UndoCommandServiceEventArgs(UndoCommandServiceEventType type, IUndoObject obj) { Type = type; UndoObject = obj; }
void NotifyEvent(UndoCommandServiceEventType type, IUndoObject?obj = null) { UndoRedoChanged(); OnEvent?.Invoke(this, new UndoCommandServiceEventArgs(type, obj)); }