private void StaticConfigProvider_PropertyChanged(object sender, PropertyChangedEventArgs e) { switch (e.PropertyName) { case "IsTermUpper": if (StaticConfigProvider.IsTermUpper == true) { TermList = TermList.Select(x => x.ToUpper()).ToList(); } else { TermList = TermList.Select(x => x.ToLower()).ToList(); } break; case "IsTranslationUpper": if (StaticConfigProvider.IsTranslationUpper == true) { TranslationList = TranslationList.Select(x => x.ToUpper()).ToList(); } else { TranslationList = TranslationList.Select(x => x.ToLower()).ToList(); } break; case "IsTestOn": if (StaticConfigProvider.IsTestOn == true) { WordsDictionary = ReadFromFileService.ReturnWordsDictionary(); IsTestOn = true; } else { IsTestOn = false; } break; case "IsTestOpenFirstly": IsTestOpenFirstly = StaticConfigProvider.IsTestOpenFirstly; break; } }
public Dictionary <string, double> GetWordsDictionary() { WordsDictionary = ReadFromFileService.ReturnWordsDictionary(); return(WordsDictionary); }