예제 #1
0
        public T Undo()
        {
            var state = _undo.GetPreviousState();

            if (state != null)
            {
                _redo.SaveState(state);
            }
            return(state);
        }
예제 #2
0
 public T Redo()
 => _redo.GetPreviousState();