private void                    updateV()
        {
            if (mHolder.Count > 0)
            {
                var lNames = mHolder.Names;
                for (int i = 0; i < lNames.Length; i++)
                {
                    if (ValuesCompare.isEqual(mHolder.getValue(lNames[i]), mObjectValue.ValueObject))
                    {
                        mNoUpdate = true;
                        try
                        {
                            comboBox.SelectedIndex = i;
                        }
                        finally
                        {
                            mNoUpdate = false;
                        }
                        return;
                    }
                }
            }

            comboBox.SelectedIndex = -1;
        }
Example #2
0
 private void                    updateV()
 {
     if (mHolder.Count > 0)
     {
         var lNames = mHolder.Names;
         mNoUpdate = true;
         try
         {
             for (int i = 0; i < lNames.Length; i++)
             {
                 mRB[i].Checked = ValuesCompare.isEqual(mHolder.getValue(lNames[i]), mObjectValue.ValueObject);
             }
         }
         finally
         {
             mNoUpdate = false;
         }
     }
 }
Example #3
0
 private void                        MSREngine_SpeechRecognized(object aSender, SpeechRecognizedEventArgs aEventArgs)
 {
     mValue        = mHolder.getValue(aEventArgs.Result.Text);
     mValueChanged = true;
     raiseValuesChanged();
 }