/// <summary> /// Virtual event trigger method. /// </summary> /// <param name="sender">Name of event broadcaster.</param> /// <param name="e">Information about event.</param> protected virtual void OnCountdownTimer(object sender, CountdownEventArgs e) => this.CountdownTimer?.Invoke(sender, e);
private void Countdown_CountdownTimer(object sender, CountdownEventArgs e) { Console.WriteLine("Countdown ended!"); Console.WriteLine($"The message is: {e.Message}"); }