예제 #1
0
파일: UndoManager.cs 프로젝트: damolinx/ima
        /// <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());
        }
예제 #2
0
파일: UndoManager.cs 프로젝트: damolinx/ima
        public NamedPair GetRedo(string name, Bitmap current)
        {
            _pendingChanges += 1;
            var pair      = _redo.Pop();
            var namedPair = new NamedPair(name, current);

            _undo.Push(namedPair);
            return(pair);
        }