Exemplo n.º 1
0
        public void createTimer()
        {
            CustomTimer timer = new CustomTimer(miliseconds);

            timer.Start();
            timer.Elapsed += new ElapsedEventHandler(_timer_Elapsed_With_Result);
            timers.Add(timer);
        }
Exemplo n.º 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);
        }