public override void FromTo(ShapeBase shape) { base.FromTo(shape); ShapeVideo other = shape as ShapeVideo; if (other != null) { _sizeMode = other._sizeMode; _imageUrl = other._imageUrl; _fileHandle = other._fileHandle; //_destBounds = other._destBounds; if (other._image != null) { _image = other._image.Clone() as Image; } } }
public override void FromTo(ShapeBase shape) { if (shape == null) { return; } base.FromTo(shape); ShapeImage other = shape as ShapeImage; if (other != null) { _imageUrl = other._imageUrl; DestBounds = other.DestBounds; IsGif = other.IsGif; _fileHandle = other._fileHandle; _sizeMode = other._sizeMode; } }