static void Main(string[] args) { var timerE = new TimerEvent(); var timer = new UserTimer(timerE); var timer2 = new UserTimer2(timerE); timerE.SimulateEvent(5); System.Console.ReadLine(); }
public UserTimer(TimerEvent newEv) { newEv.StopTimer+= TimerStart1; }