public void EndUpdate()
{
this.beginUpdateCount = Math.Max(--this.beginUpdateCount, 0);
if (beginUpdateCount == 0)
{
if (this.slideAnimationBatched)
{
this.slideAnimationBatched = false;
if (this.Animate && this.AutoLayout)
{
if (this.animationHelper != null)
{
this.animationHelper.Dispose();
this.animationHelper = null;
}
this.animationHelper = new AnimationHelper(this, AnimationHelper.SlideAnimation);
this.animationHelper.StartAnimation();
}
else
{
this.DoLayout(true);
}
}
else
{
this.DoLayout(true);
}
}
}