Advertisement
ncosentino

Timer example for Yasmin

Aug 18th, 2013
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.17 KB | None | 0 0
  1. var timer = new Timer();
  2. timer.Tick += (sender, e) =>
  3. {
  4.     // call your database code here
  5. };
  6. timer.Interval = 5000; // this value is in milliseconds
  7. timer.Start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement