Exemplo n.º 1
0
        /// <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());
        }
Exemplo n.º 2
0
        public NamedPair GetRedo(string name, Bitmap current)
        {
            _pendingChanges += 1;
            var pair      = _redo.Pop();
            var namedPair = new NamedPair(name, current);

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