示例#1
0
 private void OnTimeElapsed(int ticksLeft)
 {
     if (this.TimeElapsed != null)
     {
         TimeElapsedEventArgs e = new TimeElapsedEventArgs(ticksLeft);
         TimeElapsed(this, e);
     }
 }
示例#2
0
 private void OnTimeElapsed(int ticksLeft)
 {
     if (this.TimeElapsed != null)
     {
         TimeElapsedEventArgs e = new TimeElapsedEventArgs(ticksLeft);
         TimeElapsed(this, e);
     }
 }
示例#3
0
 public static void TimerTimeElapsed(object sender, TimeElapsedEventArgs e)
 {
     Console.WriteLine("Inside timer tick! Time elapsed! Ticks left: {0}.", e.TicksLeft);
 }
示例#4
0
 public static void TimerTimeElapsed(object sender, TimeElapsedEventArgs e)
 {
     Console.WriteLine("Inside timer tick! Time elapsed! Ticks left: {0}.", e.TicksLeft);
 }