コード例 #1
0
 internal void SetPreviousPlayName(string pPlayName)
 {
     // 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.previousPlayName.InvokeRequired)
     {
         SetPreviousPlayNameCallback d = new SetPreviousPlayNameCallback(SetPreviousPlayName);
         this.Invoke(d, new object[] { pPlayName });
     }
     else
     {
         this.previousPlayName.Text = pPlayName;
     }
 }
コード例 #2
0
 internal void SetPreviousPlayName(string pPlayName)
 {
     // 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.previousPlayName.InvokeRequired)
     {
         SetPreviousPlayNameCallback d = new SetPreviousPlayNameCallback(SetPreviousPlayName);
         this.Invoke(d, new object[] { pPlayName });
     }
     else
     {
         this.previousPlayName.Text = pPlayName;
     }
 }