public void GetDataGridTermTranslationList(string path, [CallerMemberName] string caller = "") { string callerMethodName = caller; TermTranslationList = ReadFromFileService.ReturnTermTranslationList(path, callerMethodName); NotifyPropertyChanged(); }
public void ReSortWordsDictionary() { WordsDictionary = (from entry in WordsDictionary orderby entry.Value descending select entry).ToDictionary(pair => pair.Key, pair => pair.Value); ReadFromFileService.GetSortedTermTranslationList(WordsDictionary); //GetTermList(); //GetTranslationList(); StaticNotifyPropertyChanged(); }
// /Methods for non-test mode // Methods for Category Tab public void GetTermTranslationList(string path, [CallerMemberName] string caller = "") { string callerMethodName = caller; TermTranslationList = ReadFromFileService.ReturnTermTranslationList(path, callerMethodName); GetTermList(); GetTranslationList(); if (IsTestOn) { IsTestOpenFirstly = true; openWindowService.CreateTestWindow(); } NotifyPropertyChanged(); }
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; } }
// /Methods for Category Tab public Dictionary <string, double> GetCurrentWordsDictionary(int blockVolume) { CurrentWordsDictionary = ReadFromFileService.ReturnCurrentWordsDictionary(blockVolume); return(CurrentWordsDictionary); }
public List <string> GetTranslationList() { TranslationList = ReadFromFileService.ReturnTranslationList(); return(TranslationList); }
// Methods for non-test mode public List <string> GetTermList() { TermList = ReadFromFileService.ReturnTermList(); return(TermList); }
public Dictionary <string, double> GetWordsDictionary() { WordsDictionary = ReadFromFileService.ReturnWordsDictionary(); return(WordsDictionary); }