Example #1
0
 public void Subscribe(Clock theClock)
 {
     theClock.SecondChange += new Clock.SecondChangeHandler(WriteLogEntry);
 }
Example #2
0
 // Given a clock, subscribe to its SecondChangeHandler event
 public void Subscribe(Clock theClock)
 {
     theClock.SecondChange += new Clock.SecondChangeHandler(TimeHasChanged);
 }