コード例 #1
0
 /// <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);
コード例 #2
0
 private void Countdown_CountdownTimer(object sender, CountdownEventArgs e)
 {
     Console.WriteLine("Countdown ended!");
     Console.WriteLine($"The message is: {e.Message}");
 }