public UndoSequence EndSequence(string title, bool reverse = false) { UndoSequence uso = _framework.EndSequence(title, reverse); OnPropertyChanged(nameof(UndoTitle)); return(uso); }
public UndoSequence EndSequence(string title, bool reverse = false) { if (_undoStacks.Count > 0 && IsEnabled) { UndoSequence uso = new UndoSequence(title, _undoStack, reverse); _undoStack = _undoStacks.Pop(); _undoStack.Push(uso); return(uso); } return(null); }