public AnimationController(CollapsablePanel Ctrl) { pnl = Ctrl; mAnimationTimer = new System.Windows.Forms.Timer(); mAnimationTimer.Tick += new EventHandler(AnimationTimer_Tick); mAnimationTimer.Interval = mAnimationFrameInterval; }
public void Dispose() { if(mAnimationTimer != null) { mAnimationTimer.Stop(); mAnimationTimer.Dispose(); mAnimationTimer = null; } pnl = null; }