Hyluss

Delegaty

Dec 3rd, 2017
264
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 KB | None | 0 0
  1. DispatcherTimer timer = new DispatcherTimer();
  2.  
  3. timer.Tick +=timerTick;
  4. timer.Interval = new TimeSpan (0,8,0);
  5. timer.Start;
  6.  
  7. //wlasna funkcja obslugujaca timer
  8. timer.Tick += (object s, EventArgs e) => timerTick (s,e,10,20);
  9.  
  10. //funkcja odbierajaca wlasny timer
  11. void TimerTick (object sender, EventArgs e, int value1, int value2)
  12. {
  13.     //...
  14. }
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment