Пример #1
0
 /// Thread Safe Set.
 private void SetFrameRate(decimal _value)
 {
     // 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 (m_SharedNumUD.InvokeRequired)
     {
         SetTextCallback d = new SetTextCallback(SetFrameRate);
         m_SharedNumUD.Invoke(d, new object[] { _value });
     }
     else
     {
         m_SharedNumUD.Value = _value;
     }
 }