private void SettingsChanged() { if (CurrentSettings != null) { SelectedFontFamily = FontList.Single(font => font.FontName.Equals(CurrentSettings.FontFamily.Source)); IsAutosave = CurrentSettings.IsAutosave; FontSize = CurrentSettings.FontSize; SelectedTargetLanguage = LanguageList.Single(lang => lang.TargetLanguageName == CurrentSettings.TargetLanguage); } else { SelectedFontFamily = FontList.Single(font => font.FontName.Equals("Default")); } }