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 HeardIt(Metronome m, TimeOfTick e)
 {
     Console.WriteLine("{0} HEARD IT AT {1}",
                       ListID, e.Time);
 }