Exemplo n.º 1
0
        public IMemento Restore()
        {
            SurfaceCropMemento oldState = new SurfaceCropMemento(surface, cropRectangle);

            surface.UndoCrop(image, cropRectangle);
            surface.Invalidate();
            return(oldState);
        }
Exemplo n.º 2
0
 public IMemento Restore()
 {
     SurfaceCropMemento oldState = new SurfaceCropMemento( surface, cropRectangle);
     surface.UndoCrop(image, cropRectangle);
     surface.Invalidate();
     return oldState;
 }