Exemplo n.º 1
0
 private void Handler(object sender, StopClockEventArgs eventArgs)
 {
     Console.WriteLine($"{this.GetType().Name} got message throught {eventArgs.Hour} hours {eventArgs.Minute} minutes {eventArgs.Second} seconds");
 }
Exemplo n.º 2
0
        /// <summary>
        /// stop the clocks after specified time
        /// </summary>
        /// <param name="e">event</param>
        private void StopTime(StopClockEventArgs e)
        {
            EventHandler <StopClockEventArgs> temp = StopClock;

            temp?.Invoke(this, e);
        }