Example #1
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     label4.Text = eq.CallFromElectronicQueue();
     System.Media.SystemSounds.Exclamation.Play();
     // обновляем очередь
     eq.DeleteFromElectronicQueue();
 }
Example #2
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     timer1.Interval = 1000;
     // отображаем вызываемого по очереди
     label4.Text = eq.CallFromElectronicQueue();
     System.Media.SystemSounds.Exclamation.Play();
     // обновляем очередь
     try
     {
         eq.DeleteFromQueue();
     }
     catch (Exception ex)
     {
         timer1.Stop();
         MessageBox.Show(ex.Message);
     }
 }