ZForge.Controls.ExplorerBar.Expando.UpdateFadeAnimation C# (CSharp) Méthode

UpdateFadeAnimation() protected méthode

Updates the next "frame" of the animation
protected UpdateFadeAnimation ( int animationStepNum, int numAnimationSteps ) : void
animationStepNum int The current step in the animation
numAnimationSteps int The total number of steps in the animation
Résultat void
        protected void UpdateFadeAnimation(int animationStepNum, int numAnimationSteps)
        {
            // fix: use the precalculated heights to determine
            //      the correct height
            //      David Nissimoff ([email protected])
            //      22/10/2004
            //      v3.0

            // set the height of the group
            if (this.collapsed)
            {
                this.Height = this.fadeHeights[animationStepNum-1] + this.headerHeight;
            }
            else
            {
                this.Height = (this.ExpandedHeight - this.HeaderHeight) - this.fadeHeights[animationStepNum-1] + this.HeaderHeight - 1;
            }

            if (this.TaskPane != null)
            {
                this.TaskPane.DoLayout();
            }
            else
            {
                // draw the next frame
                this.Invalidate();
            }
        }