示例#1
0
        private void BeginCaptureUndo()
        {
            _historyCommand = new CompositeUndoableCommand();
            DrawableUndoableCommand drawableUndoableCommand = new DrawableUndoableCommand(_imageBox);

            _imageBoxCommand            = new MemorableUndoableCommand(_imageBox);
            _imageBoxCommand.BeginState = _imageBox.CreateMemento();
            drawableUndoableCommand.Enqueue(_imageBoxCommand);
            _historyCommand.Enqueue(drawableUndoableCommand);
        }