Beispiel #1
0
 private void InitializeLanguage()
 {
     base.GetAppLanguage();
     Header           = LanguageEntries.GetValue("TermsScreenTitle");
     Accepted         = LanguageEntries.GetValue("TermScreenAgreed");
     AcceptButtonText = LanguageEntries.GetValue("AcceptButtonText");
 }
Beispiel #2
0
        public void SaveDocument(string path)
        {
            var dictionary = new ResourceDictionary();
            using (var sw = new StreamWriter(path))
            {
                foreach (var languageEntry in LanguageEntries.Where(x => !string.IsNullOrWhiteSpace(x.Value)))
                    dictionary.Add(languageEntry.Key, languageEntry.Value);

                XamlWriter.Save(dictionary, sw);
            }
        }
Beispiel #3
0
        public SettingsViewModel()
        {
            languageEntries = new ObservableCollection <LanguageEntryModel>
            {
                new LanguageEntryModel(Translate.ResString("Language_1"), Translate.ResString("LanguageDisplay_1")),
                new LanguageEntryModel(Translate.ResString("Language_2"), Translate.ResString("LanguageDisplay_2"))
            };

            if (string.IsNullOrEmpty(Language))
            {
                Language = LanguageEntries.FirstOrDefault().ToString();
            }
        }
 private void InitializeLanguage()
 {
     base.GetAppLanguage();
     Header       = LanguageEntries.GetValue("TrainingScreenTitle");
     OkButtonText = LanguageEntries.GetValue("OkButtonText");
 }