Exemple #1
0
        protected override void Dispose(bool disposing)
        {
            if (_isDisposed)
            {
                return;
            }

            _isDisposed = true;

            if (disposing && _animation != null)
            {
                _animation.AnimationStopped -= OnAnimationStopped;
                Layer.RemoveAnimation(AnimationLayerName);
                _animation.Dispose();
                _animation = null;
            }

            base.Dispose(disposing);
        }