public GenerateOrCreateTestLogic() { wordsLogic = WordsLogic.GetInstance(); ruWords = new Dictionary <string, bool>(); enWords = new Dictionary <string, bool>(); countSelectWords = 0; LoadDataRu(wordsLogic.GetRuAllWords()); LoadDataEn(wordsLogic.GetEnAllWords()); }
public void LoadDataEn(string searchText) { enWordsSearch = new Dictionary <string, bool>(); List <string> list = wordsLogic.GetEnAllWords(); foreach (var word in list) { if (!enWordsSearch.ContainsKey(word) && word.Contains(searchText)) { enWordsSearch.Add(word, enWords[word]); } } }