protected void TrySetValue() { try { if (SelectedIndex >= 0 && SelectedIndex < Options.Count) { Configuration.Value = EnumNames.FirstOrDefault(x => x.Value == Options[SelectedIndex]).Key; } } catch (Exception e) { AncoraLogger.Instance.LogException("Error parsing MultipleChoiceSetting's enum value.", e); } }