Пример #1
0
 /// <summary>
 /// Gets called when the timer ticks (and it isn't paused). Handles invoking the onTimerTicked delegate.
 /// </summary>
 private void InvokeTickedDelegate()
 {
     if (onTimerTicked != null)
     {
         onTimerTicked.Invoke();
     }
 }
Пример #2
0
 private void NotifyTimerElapsed(Object source, ElapsedEventArgs e)
 {
     OnTimerTicked?.Invoke();
 }