Пример #1
0
 private void StartTimer()
 {
     if (FlashTimer == null)
     {
         int time = new A_GraphicsBLL().GetFlashTime();
         FlashTimer = new Timer();
         FlashTimer.Interval = time * 1000;
         FlashTimer.Tick += new EventHandler(t_Tick);
         FlashTimer.Start();
     }
     else
     {
         if (!FlashTimer.Enabled)
         {
             int time = new A_GraphicsBLL().GetFlashTime();
             FlashTimer.Interval = time * 1000;
             FlashTimer.Tick += new EventHandler(t_Tick);
             FlashTimer.Start();
         }
     }
 }