예제 #1
0
파일: Timer.cs 프로젝트: dhija/Telerik
        protected virtual void OnTimerTick(TimerEventArgs e)
        {
            // Make a temporary copy of the event to avoid possibility of
            // a race condition if the last subscriber unsubscribes
            // immediately after the null check and before the event is raised.
            TimerTickEventHandler handler = TimerTick;

            if (handler != null)
            {
                handler(this, e);
            }
        }
예제 #2
0
 static void OnTimerTick(object sender, TimerEventArgs e)
 {
     Console.WriteLine("Inside timer tick, ticks left: " + e.TicksLeft);
 }
예제 #3
0
 static void OnTimerTick(object sender, TimerEventArgs e)
 {
     Console.WriteLine("Inside timer tick, ticks left: " + e.TicksLeft);
 }