コード例 #1
0
 internal void setMessage(string pMessage)
 {
     // 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 (m_parent.calibrationRecordingStatus.InvokeRequired)
     {
         setMessageCallback d = new setMessageCallback(setMessage);
         m_parent.calibrationRecordingStatus.Invoke(d, new object[] { pMessage });
     }
     else
     {
         m_parent.calibrationRecordingStatus.Text = pMessage;
         ApplicationSpeech.speakText(pMessage);
     }
 }
コード例 #2
0
 internal void setMessage(string pMessage)
 {
     // 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 (m_parent.calibrationRecordingStatus.InvokeRequired)
     {
         setMessageCallback d = new setMessageCallback(setMessage);
         m_parent.calibrationRecordingStatus.Invoke(d, new object[] { pMessage });
     }
     else
     {
         m_parent.calibrationRecordingStatus.Text = pMessage;
         ApplicationSpeech.speakText(pMessage);
     }
 }