Пример #1
0
        private void ProcessEvent(TimerEventArgs e, EventHandler <TimerEventArgs> h)
        {
            EventHandler <TimerEventArgs> handler = h;

            handler?.Invoke(this, e);
        }
Пример #2
0
 private void OnRunTimerEvent(TimerEventArgs e)
 {
     ProcessEvent(e, RunTimerEvent);
 }
Пример #3
0
 private void OnEndTimerEvent(TimerEventArgs e)
 {
     ProcessEvent(e, EndTimerEvent);
 }
Пример #4
0
 private void OnInitTimerEvent(TimerEventArgs e)
 {
     ProcessEvent(e, InitTimerEvent);
 }