private void StopTimer() { if (this.animationTimer == null) { return; } this.animationTimer.Stop(); this.animationTimer = (RadControlAnimationTimer)null; }
private void StartTimer() { if (this.animationTimer == null) { this.animationTimer = new RadControlAnimationTimer(); this.animationTimer.Interval = this.setting.Interval < 5 ? 40 : this.setting.Interval; this.animationTimer.Tick += new EventHandler(this.AnimationTimer_Tick); } this.animationTimer.Start(); }
private void StopTimer() { if (this.timer != null) { if (this.element.ElementTree != null) { RestoreChildControlsVisible(this.element.ElementTree.Control); } this.timer.Stop(); this.timer = null; } }
private void StartTimer() { if (this.element.ElementTree != null) { DetermineChildControlsVisible(this.element.ElementTree.Control); } this.timer = new RadControlAnimationTimer(); this.timer.Interval = this.interval < 5? 40 : this.interval; timer.Tick += new EventHandler(timer_Tick); timer.Start(); }
public void Dispose() { if (this.running) { this.StopTimer(); } if (this.animationTimer != null) { this.animationTimer.Tick -= new EventHandler(this.AnimationTimer_Tick); this.animationTimer = (RadControlAnimationTimer)null; } this.setting = (AnimatedPropertySetting)null; this.element = (RadObject)null; }