Example #1
0
 protected override void OnStop()
 {
     timer1.AutoReset = false;
     timer1.Enabled   = false;
     ServiceLog.WriteErrorLog("Daily Reporting service stopped");
 }
Example #2
0
 protected override void OnStart(string[] args)
 {
     timer1.AutoReset = true;
     timer1.Enabled   = true;
     ServiceLog.WriteErrorLog("Daily Reporting service started");
 }