public CreateDictionaryViewModel(ILanguageItems languageItems) { var language = languageItems.Languages().SingleOrDefault((arg) => arg.Id == Settings.PrimaryLanguage); PrimaryTitle = language.Name + " word"; language = languageItems.Languages().SingleOrDefault((arg) => arg.Id == Settings.SecondaryLanguage); SecondaryTitle = language.Name + " Word"; }
private void OnUpdateLanguage() { if (Settings.PrimaryLanguage > -1) { var language = _languageItems.Languages().SingleOrDefault((arg) => arg.Id == Settings.PrimaryLanguage); PrimaryLanguage = language.Name; } if (Settings.SecondaryLanguage > -1) { var language = _languageItems.Languages().SingleOrDefault((arg) => arg.Id == Settings.SecondaryLanguage); SecondaryLanguage = language.Name; } }
public SelectLanguageViewModel(ILanguageItems languageItems) { _languages = languageItems.Languages(); }