Пример #1
0
 private void timer1_Tick(object sender, ElapsedEventArgs e)
 {
     //Write code here to do some job depends on your requirement
     Library.writeErrorlog("Timer ticked and some job has been done successfully");
 }
Пример #2
0
 protected override void OnStop()
 {
     timer1.Enabled = false;
     Library.writeErrorlog("Test window service stopped");
 }