///<summary>
 /// Timer calls this method to notify
 ///Person about end of time
 /// </summary>
 private void RingTimer(object sender, TimerRingEventArgs e)
 {
     Console.WriteLine("{0}!!! Now is {1}, you should {2}", Name, e.DateRing, e.AnyMessage);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Determining the method responsible for notifying the registered objects of the event
 /// </summary>
 public void OnTimerRing(object sender,TimerRingEventArgs e)
 {
     TimerRing?.Invoke(sender, e);
 }