Код
public static int Main(string[] args) {
/* Adds the event and the event handler for the method that will
process the timer event to the timer. */
myTimer.Tick += new EventHandler(TimerEventProcessor);
// Sets the timer interval to 5 seconds.
myTimer.Interval = 5000;
myTimer.Start();
/* Adds the event and the event handler for the method that will
process the timer event to the timer. */
myTimer.Tick += new EventHandler(TimerEventProcessor);
// Sets the timer interval to 5 seconds.
myTimer.Interval = 5000;
myTimer.Start();
В другом месте создается объект myTimer типа System.Windows.Forms.Timer.
Tick - это событие, которое происходит, когда истекает интервал таймера.
Что за строка такая? К событию добавляется обработчик...?
myTimer.Tick += new EventHandler(TimerEventProcessor);
И что такое "событие" ?
