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