static void Main() { Metronome m = new Metronome(); Listener l = new Listener(); l.Subscribe(m); m.Start(); }
private void HeardIt(Metronome m, EventArgs e) { System.Console.WriteLine("HEARD IT"); }
public void Subscribe(Metronome m) { m.Tick += new Metronome.TickHandler(HeardIt); }