Ejemplo n.º 1
0
 internal void SetTextBeatCounter(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)
     {
         SetTextBeatCounterCallback d = new SetTextBeatCounterCallback(SetTextBeatCounter);
         this.Invoke(d, new object[] { text });
     }
     else
     {
         this.beatCount.Text = text;
     }
 }
Ejemplo n.º 2
0
 internal void SetTextBeatCounter(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)
     {
         SetTextBeatCounterCallback d = new SetTextBeatCounterCallback(SetTextBeatCounter);
         this.Invoke(d, new object[] { text });
     }
     else
     {
         this.beatCount.Text = text;
     }
 }