Exemplo n.º 1
0
 protected void OnTimeChanged(int tick)
 {
     if (this.TimeChanged != null)
     {
         TimeChangeEventArgs eventArgs = new TimeChangeEventArgs(tick);
         this.TimeChanged(this, eventArgs);
     }
 }
 public static void CountTime(object sender, TimeChangeEventArgs eventArgs)
 {
     Console.WriteLine("{0}", eventArgs.TicksLeft);
 }