public void Run() { CountDownClock toasterCountDown = new CountDownClock("Toaster ready to eat", 5); ToasterNotify note = new ToasterNotify(); note.subscribe(toasterCountDown); toasterCountDown.Run(); }
public void subscribe(CountDownClock theClock) { theClock.TimesUp += new CountDownClock.CountDownHandler(toasterTimesUp); }