Пример #1
0
        public void createTimer()
        {
            CustomTimer timer = new CustomTimer(miliseconds);

            timer.Start();
            timer.Elapsed += new ElapsedEventHandler(_timer_Elapsed_With_Result);
            timers.Add(timer);
        }
Пример #2
0
        public void createTimer(CommandO command)
        {
            CustomTimer timer = new CustomTimer(command.timer, command.message);

            timer.Start();
            timer.Elapsed += new ElapsedEventHandler(_timer_Elapsed);
            timers.Add(timer);
        }