private static void TimerReciever(object sender, TimesUpEventArgs e) { Console.WriteLine($"Timer '{ e.Name }' завершен за { e.Delay / 1000 } с."); }
private static void TimerCount(object sender, TimesUpEventArgs e) { Console.WriteLine($"Timer '{ e.Name }' - { e.RemainTime } с."); }
private static void TimerStart(object sender, TimesUpEventArgs e) { Console.WriteLine($"Timer '{ e.Name }' установлен на { e.Delay / 1000 } с."); }
protected virtual void OnTimesUp(object sender, TimesUpEventArgs e) { TimesUp?.Invoke(sender, e); }
protected virtual void OnCountDown(TimesUpEventArgs e) { CountDown?.Invoke(this, e); }
protected virtual void OnStartTimer(TimesUpEventArgs e) { StartTimer?.Invoke(this, e); }