Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DispatcherTimer timer = new DispatcherTimer();
- timer.Tick +=timerTick;
- timer.Interval = new TimeSpan (0,8,0);
- timer.Start;
- //wlasna funkcja obslugujaca timer
- timer.Tick += (object s, EventArgs e) => timerTick (s,e,10,20);
- //funkcja odbierajaca wlasny timer
- void TimerTick (object sender, EventArgs e, int value1, int value2)
- {
- //...
- }
Advertisement