protected override void OnStop()
 {
     timer.Enabled = false;
     ErrorLog.WriteErrorLog("Test window service stopped");
 }
 private void timer_Tick(object sender, ElapsedEventArgs e)
 {
     //Write code here to do some job depends on your requirement
     ErrorLog.WriteErrorLog("Timer ticked and some job has been done successfully");
 }