Пример #1
0
 private void StopTimer()
 {
     if (this.animationTimer == null)
     {
         return;
     }
     this.animationTimer.Stop();
     this.animationTimer = (RadControlAnimationTimer)null;
 }
Пример #2
0
 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();
 }
Пример #3
0
        private void StopTimer()
        {
            if (this.timer != null)
            {
                if (this.element.ElementTree != null)
                {
                    RestoreChildControlsVisible(this.element.ElementTree.Control);
                }

                this.timer.Stop();
                this.timer = null;
            }
        }
Пример #4
0
        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();
        }
Пример #5
0
 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;
 }