static void MainThree() { Metronome m = new Metronome(); Listener l = new Listener(); l.Subscribe(m); m.Start(); }
private void HeardIt(Metronome m, TimeOfTick e) { Console.WriteLine("HEARD IT AT {0}", e.Time); }
public void Subscribe(Metronome m) { m.Tick += new Metronome.TickHandler(HeardIt); }