/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void timer1_Tick(object sender, EventArgs e) { if (status != null) { try { status.LogHeartbeat(idString); } catch (Exception ex) { Logger.Instance.WriteToLog(ex.ToString()); } } }
private void timer1_Tick(object sender, EventArgs e) { if (status != null) { try { status.LogHeartbeat(this.Text); } catch (Exception ex) { // Logger.Instance.WriteToLog(ex.ToString()); } } if (ProcessingThread.IsBusy == false) { automation3List1.refreshGrid(); ProcessingThread.RunWorkerAsync(); } }