/// <summary> /// /// </summary> /// <param name="current"></param> /// <returns></returns> public NamedPair GetUndo(string name, Bitmap current) { _pendingChanges -= 1; var redoPair = new NamedPair(name, current); _redo.Push(redoPair); return(_undo.Pop()); }
public NamedPair GetRedo(string name, Bitmap current) { _pendingChanges += 1; var pair = _redo.Pop(); var namedPair = new NamedPair(name, current); _undo.Push(namedPair); return(pair); }