private void SynchronizeCurrentColorValues() { var selectedValue = ComboBoxColorSpace.SelectedValue as string; if (selectedValue != null) { if (selectedValue != ColorSpace.GetFriendlyName(CurrentColor1)) { ComboBoxColorSpace.SelectedValue = ColorSpace.GetFriendlyName(CurrentColor1); } else { _updatingSliders = true; UpdateSliderValues(); } } }