Beispiel #1
0
 internal ComposeDisposer( UndoRedoStack undoRedoStack, CompositeUndoableAction action )
 {
     _undoRedoStack = undoRedoStack;
     _undoRedoStack._composites.Push( action );
 }
Beispiel #2
0
            public void Dispose()
            {
                if( _undoRedoStack != null )
                {
                    CompositeUndoableAction action = _undoRedoStack._composites.Pop();

                    _undoRedoStack.AddAction( action );

                    _undoRedoStack = null;
                }
            }
Beispiel #3
0
            public UndoCommand( UndoRedoStack undoRedoStack )
            {
                if( undoRedoStack == null )
                {
                    throw new ArgumentNullException( "undoRedoStack" );
                }

                _undoRedoStack = undoRedoStack;
            }