Пример #1
0
 /// <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());
         }
     }
 }
Пример #2
0
        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();
            }
        }