private void cbDataType_SelectedIndexChanged(object sender, EventArgs e)
{
formDataAccess.WaitOne();
ComboBox comboBox = sender as ComboBox;
string outStr = string.Empty;
ValueDisplay outValueDisplay = (ValueDisplay)comboBox.SelectedIndex;
bool flag = devUtils.ConvertDisplayTypes(lastValueDisplay, tbValue.Text, ref outValueDisplay, ref outStr, true);
comboBox.SelectedIndex = (int)outValueDisplay;
if (flag)
{
lastValueDisplay = (ValueDisplay)comboBox.SelectedIndex;
lastValueDisplaySet = true;
}
else
comboBox.SelectedIndex = (int)lastValueDisplay;
tbValue.Text = outStr;
formDataAccess.ReleaseMutex();
}