Exemple #1
0
        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";
        }
Exemple #2
0
 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;
     }
 }
Exemple #3
0
 public SelectLanguageViewModel(ILanguageItems languageItems)
 {
     _languages = languageItems.Languages();
 }