示例#1
0
 private void HeardIt(Metronome m, TimeOfTick e)
 {
     Console.WriteLine("{0} HEARD IT AT {1}",
                       ListID, e.Time);
 }
示例#2
0
 private void BeepNow(Metronome m, Beep b)
 {
     Console.Beep(b.Freqency, ListID * b.Duration);
 }
示例#3
0
 public void Subscribe(Metronome m)
 {
     m.Tick += HeardIt;
     m.Beep += BeepNow;
 }