public void createTimer() { CustomTimer timer = new CustomTimer(miliseconds); timer.Start(); timer.Elapsed += new ElapsedEventHandler(_timer_Elapsed_With_Result); timers.Add(timer); }
public void createTimer(CommandO command) { CustomTimer timer = new CustomTimer(command.timer, command.message); timer.Start(); timer.Elapsed += new ElapsedEventHandler(_timer_Elapsed); timers.Add(timer); }