private static void SetComboBoxFromString(ComboBox comboBox, string option)
{
option = option.Trim().ToLower();
switch (option)
{
case "true":
comboBox.SelectedItem = option;
break;
case "false":
comboBox.SelectedItem = option;
break;
case "input":
comboBox.SelectedItem = option;
break;
default:
comboBox.SelectedItem = "";
break;
}
}