예제 #1
0
 public void Run(string message, int countDownSeconds)
 {
     Thread.Sleep(countDownSeconds * 1000);
     var args = new InfoEventArgs(message);
     if (Timeout != null)
     {
         Timeout(this, args);
     }
 }
예제 #2
0
 public void TimeHasOut(object clock, InfoEventArgs args)
 {
     Console.WriteLine("ObserverA: " + args.message);
 }
예제 #3
0
 public void TimeHasOut(object clock, InfoEventArgs args)
 {
     Console.WriteLine("ObserverB: " + args.message);
 }