Example #1
0
 internal void SetReferenceDataBindingSource(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)
     {
         SetReferenceDataBindingSourceCallback d = new SetReferenceDataBindingSourceCallback(SetReferenceDataBindingSource);
         this.Invoke(d, new object[] { dataStore });
     }
     else
     {
         this.wiimoteReferenceDataStoreBindingSource.DataSource = (WiimoteReferenceRecord[])dataStore;
     }
 }
Example #2
0
 internal void SetReferenceDataBindingSource(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)
     {
         SetReferenceDataBindingSourceCallback d = new SetReferenceDataBindingSourceCallback(SetReferenceDataBindingSource);
         this.Invoke(d, new object[] { dataStore });
     }
     else
     {
         this.wiimoteReferenceDataStoreBindingSource.DataSource = (WiimoteReferenceRecord[])dataStore;
     }
 }