Esempio n. 1
0
 /// <summary>
 /// 定时检查,并执行方法
 /// </summary>
 /// <param name="source"></param>
 /// <param name="e"></param>
 public void ChkSrv(object source, System.Timers.ElapsedEventArgs e)
 {
     try
     {
         System.Timers.Timer tt = (System.Timers.Timer)source;
         //可防止重复执行程序
         tt.Enabled = false;
         WATRunner.Run();
         HlcmWATRunner.Run();
         tt.Enabled = true;
     }
     catch (Exception err)
     {
         LogHelper.ErrorLog(err);
     }
 }
Esempio n. 2
0
 public static void Test()
 {
     HlcmSetting.SetValue();
     HlcmWATRunner.Run();
 }