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();
}
}