Пример #1
0
 internal void SetMogrePropertyBindingSource(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.MogrePropertyView.InvokeRequired)
     {
         SetMogrePropertyBindingSourceCallback d = new SetMogrePropertyBindingSourceCallback(SetMogrePropertyBindingSource);
         this.Invoke(d, new object[] { dataStore });
     }
     else
     {
         this.wiimoteReferenceDataStoreBindingSource.DataSource = (SimpleProperty[])dataStore;
     }
 }
 internal void SetMogrePropertyBindingSource(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.MogrePropertyView.InvokeRequired)
     {
         SetMogrePropertyBindingSourceCallback d = new SetMogrePropertyBindingSourceCallback(SetMogrePropertyBindingSource);
         this.Invoke(d, new object[] { dataStore });
     }
     else
     {
         this.wiimoteReferenceDataStoreBindingSource.DataSource = (SimpleProperty[])dataStore;
     }
 }