Exemplo n.º 1
0
        public WordListDiffMeaning searchWord(String word)
        {
            WordListDiffMeaning sameWordDifferentMeaning = new WordListDiffMeaning();

            sameWordDifferentMeaning = WDictionary.getWordForName2(word);
            return(sameWordDifferentMeaning);
        }
Exemplo n.º 2
0
        public AvailableWords()
        {
            WordList          = new List <Word>();
            WDictionary       = new WDictionary();
            WordsNameOnlyList = new HashSet <string>();

            fetchAllWordsFromDB();
            Count         = WordList.Count;
            MasteredCount = Count - UnMasteredCount;
        }
Exemplo n.º 3
0
        private void fetchAllWordsFromDB()
        {
            WordDaoImpl dao = new WordDaoImpl();

            WordList = dao.getAllWords();
            foreach (Word word in WordList)
            {
                WDictionary.Add(word);
                WordsNameOnlyList.Add((word.Name));
            }

            UnMasteredWordList = dao.getAllUnmasteredWords();
        }
Exemplo n.º 4
0
        public List <Word> getWord4Name(String word)
        {
            List <Word> sameWordDiffMeaning = WDictionary.getWordForName(word);

            return(sameWordDiffMeaning);
        }