private void CreateGifAnimation(MemoryStream memoryStream) { try { _gifAnimation = new GifAnimation(); _gifAnimation.CreateGifAnimation(memoryStream); _gifAnimation.Stretch = Stretch; _gifAnimation.StretchDirection = StretchDirection; this.AddChild(_gifAnimation); } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "CreateGifAnimation()--1", "Controls\\VMuktiGrid\\ImageAnim.cs"); } }
private void DeletePreviousImage() { try { if (_image != null) { this.RemoveLogicalChild(_image); _image = null; } if (_gifAnimation != null) { this.RemoveLogicalChild(_gifAnimation); _gifAnimation = null; } } catch (Exception ex) { VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "DeletePreviousImage()", "Controls\\VMuktiGrid\\ImageAnim.cs"); } }