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 } с.");
 }
예제 #4
0
 protected virtual void OnTimesUp(object sender, TimesUpEventArgs e)
 {
     TimesUp?.Invoke(sender, e);
 }
예제 #5
0
 protected virtual void OnCountDown(TimesUpEventArgs e)
 {
     CountDown?.Invoke(this, e);
 }
예제 #6
0
 protected virtual void OnStartTimer(TimesUpEventArgs e)
 {
     StartTimer?.Invoke(this, e);
 }