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");
 }
 protected override void OnStop()
 {
     timer1.Enabled = false;
     Library.writeErrorlog("Test window service stopped");
 }