예제 #1
0
 internal void SetTextRecordingStatus(string text)
 {
     // InvokeRequired required compares the thread ID of the
     // calling thread to the thread ID of the creating thread.
     // If these threads are different, it returns true.
     if (this.BeatLog.InvokeRequired)
     {
         SetTextRecordingStatusCallback d = new SetTextRecordingStatusCallback(SetTextRecordingStatus);
         this.Invoke(d, new object[] { text });
     }
     else
     {
         this.RecordingStatus.Text = text;
     }
 }
예제 #2
0
 internal void SetTextRecordingStatus(string text)
 {
     // InvokeRequired required compares the thread ID of the
     // calling thread to the thread ID of the creating thread.
     // If these threads are different, it returns true.
     if (this.BeatLog.InvokeRequired)
     {
         SetTextRecordingStatusCallback d = new SetTextRecordingStatusCallback(SetTextRecordingStatus);
         this.Invoke(d, new object[] { text });
     }
     else
     {
         this.RecordingStatus.Text = text;
     }
 }