internal void SetCurentPlayName(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.currentPlayName.InvokeRequired)
     {
         SetCurentPlayNameCallback d = new SetCurentPlayNameCallback(SetCurentPlayName);
         this.Invoke(d, new object[] { pPlayName });
     }
     else
     {
         this.currentPlayName.Text = pPlayName;
     }
 }
Example #2
0
        internal void SetCurentPlayName()
        {
            if (mVideoInfoList.Count == 0)
            {
                MessageBox.Show("Training Data not Loaded",
                                "Tap Rapper Says", MessageBoxButtons.OK,
                                MessageBoxIcon.Error);
                return;
            }

            // 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.currentPlayName.InvokeRequired)
            {
                SetCurentPlayNameCallback d = new SetCurentPlayNameCallback(SetCurentPlayName);
                this.Invoke(d, new object[] { });
            }
            else
            {
                TrainingSegmentInfo lNextTrainingSegment = mVideoInfoList[mCurrentVideoIndex];
                this.currentPlayName.Text = ProjectConstants.TRAINING_CURRENT_PLAY_HEADING + "\r\n" + lNextTrainingSegment.TrainingReferenceRecord.RecordName;
            }
        }
 internal void SetCurentPlayName(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.currentPlayName.InvokeRequired)
     {
         SetCurentPlayNameCallback d = new SetCurentPlayNameCallback(SetCurentPlayName);
         this.Invoke(d, new object[] { pPlayName });
     }
     else
     {
         this.currentPlayName.Text = pPlayName;
     }
 }
        internal void SetCurentPlayName()
        {
            if (mVideoInfoList.Count == 0)
            {
                MessageBox.Show("Training Data not Loaded",
                "Tap Rapper Says", MessageBoxButtons.OK,
                MessageBoxIcon.Error);
                return;
            }

            // 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.currentPlayName.InvokeRequired)
            {
                SetCurentPlayNameCallback d = new SetCurentPlayNameCallback(SetCurentPlayName);
                this.Invoke(d, new object[] { });
            }
            else
            {
                TrainingSegmentInfo lNextTrainingSegment = mVideoInfoList[mCurrentVideoIndex];
                this.currentPlayName.Text = ProjectConstants.TRAINING_CURRENT_PLAY_HEADING + "\r\n" + lNextTrainingSegment.TrainingReferenceRecord.RecordName;
            }
        }