internal void SetReferenceRecordingItemDataBindingSource(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) { SetReferenceRecordingItemDataBindingSourceCallback d = new SetReferenceRecordingItemDataBindingSourceCallback(SetReferenceRecordingItemDataBindingSource); this.Invoke(d, new object[] { dataStore }); } else { this.wiimoteReferenceRecordBindingSource.DataSource = (WiimoteReferenceRecordingItem [])dataStore; } }