public void ConfgureViewModel() { _vocabs = _vocabularyParserService.GetRandomizedVocabDictionary(_chapterPath); _selGermanVocabGroup = GetGermanVocabGroup(_routine); _selEnglishVocabGroup = GetEnglishVocabGroup(_routine); this.OutputLabel = _selGermanVocabGroup.ToString(); this.StatsTotalVocabs = _vocabs.Count; }
private EnglishVocabGroup GetEnglishVocabGroup(string line) { var temp = line.Split("::".ToCharArray())[0]; // get left side of "::" var englishVocabs = temp.Split("/".ToCharArray()); EnglishVocabGroup vocabGroup = new EnglishVocabGroup(englishVocabs); return(vocabGroup); }
private async Task SelectNextVocabs() { _routine++; if (_routine >= _vocabs.Count) { await _pageService.DisplayAlert("Status", "You completed the quiz!", "ok"); await _navigatorService.PushWithParametersAsync <DisplayVocabsLVPageVM>(new NamedParameter("vocabs", _wrongVocabs)); } _selEnglishVocabGroup = this.GetEnglishVocabGroup(_routine); _selGermanVocabGroup = this.GetGermanVocabGroup(_routine); this.InputEntry = ""; this.StatsFinishedVocabs++; }
private EnglishVocabGroup GetEnglishVocabGroup(int elementAt) { EnglishVocabGroup vocabGroup = _vocabs.ElementAt(elementAt).Key; return(vocabGroup); }