Ejemplo n.º 1
0
 public async Task Check()
 {
     await Task.Run(() =>
     {
         while (true)
         {
             Thread.Sleep(2000);
             TimeOfTick TOT = new TimeOfTick();
             Beep bp        = new Beep();
             bp.Freqency    = 420;
             bp.Duration    = 200;
             TOT.Time       = DateTime.Now;
             Tick?.Invoke(this, TOT);
             Beep?.Invoke(this, bp);
         }
     }
                    );
 }
Ejemplo n.º 2
0
 private void BeepNow(Metronome m, Beep b)
 {
     Console.Beep(b.Freqency, ListID * b.Duration);
 }