Пример #1
0
 internal void SetTrainingSegmentInfoBindingSource(object[] dataStore)
 {
     // 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.WiimoteStatus.InvokeRequired)
     {
         SetTrainingSegmentInfoBindingSourceCallback d = new SetTrainingSegmentInfoBindingSourceCallback(SetTrainingSegmentInfoBindingSource);
         this.Invoke(d, new object[] { dataStore });
     }
     else
     {
         this.trainingSegmentInfoBindingSource.DataSource = (TrainingSegmentInfo[])dataStore;
     }
 }
Пример #2
0
 internal void SetTrainingSegmentInfoBindingSource(object[] dataStore)
 {
     // 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.WiimoteStatus.InvokeRequired)
     {
         SetTrainingSegmentInfoBindingSourceCallback d = new SetTrainingSegmentInfoBindingSourceCallback(SetTrainingSegmentInfoBindingSource);
         this.Invoke(d, new object[] { dataStore });
     }
     else
     {
         this.trainingSegmentInfoBindingSource.DataSource = (TrainingSegmentInfo[])dataStore;
     }
 }