using System; using System.Collections.Generic; using System.Text; namespace DevComponents.DotNetBar.Animation { internal class AnimationInt : Animation { #region Constructor /// /// Initializes a new instance of the Animation class. /// /// Target object for animation /// Target property name for animation public AnimationInt(AnimationEasing animationEasing, int animationDuration) : base(new AnimationRequest[0], animationEasing, animationDuration) { } /// /// Initializes a new instance of the Animation class. /// /// Target object for animation /// Target property name for animation public AnimationInt(AnimationRequest animationRequest, AnimationEasing animationEasing, int animationDuration) : base(new AnimationRequest[] { animationRequest }, animationEasing, animationDuration) { } /// /// Initializes a new instance of the Animation class. /// /// Target object for animation /// Target property name for animation public AnimationInt(AnimationRequest[] animationRequests, AnimationEasing animationEasing, int animationDuration) : base(animationRequests, animationEasing, animationDuration) { } #endregion protected override object GetPropertyValueCorrectType(double value) { return (int)value; } } }