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