public IMemento Restore()
 {
     SurfaceBackgroundChangeMemento oldState = new SurfaceBackgroundChangeMemento(surface, offset);
     surface.UndoBackgroundChange(image, offset);
     surface.Invalidate();
     return oldState;
 }
 public IMemento Restore()
 {
     SurfaceBackgroundChangeMemento oldState = new SurfaceBackgroundChangeMemento(_surface, _matrix);
     _surface.UndoBackgroundChange(_image, _matrix);
     _surface.Invalidate();
     return oldState;
 }
Exemple #3
0
        public IMemento Restore()
        {
            SurfaceBackgroundChangeMemento oldState = new SurfaceBackgroundChangeMemento(_surface, _matrix);

            _surface.UndoBackgroundChange(_image, _matrix);
            _surface.Invalidate();
            return(oldState);
        }
        public IMemento Restore()
        {
            SurfaceBackgroundChangeMemento oldState = new SurfaceBackgroundChangeMemento(surface, offset);

            surface.UndoBackgroundChange(image, offset);
            surface.Invalidate();
            return(oldState);
        }