示例#1
0
 protected override void OnStop()
 {
     timer1.Enabled = false;
     Libary.WriteErrorLog("Test window services stopped");
 }
示例#2
0
 private void timer1_Tick(object sender, ElapsedEventArgs e)
 {
     Libary.WriteErrorLog("Timer ticked and some job has been done succesfully");
 }