private void Handler(object sender, StopClockEventArgs eventArgs) { Console.WriteLine($"{this.GetType().Name} got message throught {eventArgs.Hour} hours {eventArgs.Minute} minutes {eventArgs.Second} seconds"); }
/// <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); }