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