public T Undo() { var state = _undo.GetPreviousState(); if (state != null) { _redo.SaveState(state); } return(state); }
public T Redo() => _redo.GetPreviousState();
public T Undo() { var state = _undo.GetPreviousState(); if (state != null) { _redo.SaveState(state); } return(state); }
public T Redo() => _redo.GetPreviousState();