Esempio n. 1
0
        public void SetWordState(string strWord, bool bAlreadyLearned)
        {
            WordVO wordVO = null;

            if (!Words.ContainsKey(strWord))
            {
                return;
            }
            else
            {
                wordVO = Words[strWord];
            }
            wordVO.IsAlreadyLearn = bAlreadyLearned;
        }
Esempio n. 2
0
        public WordVO GetWord(string strSpell)
        {
            WordVO wordVO = null;

            if (!Words.ContainsKey(strSpell))
            {
                return(new WordVO(strSpell));
            }
            else
            {
                wordVO = Words[strSpell];
            }
            return(wordVO);
        }
Esempio n. 3
0
        public void AddWord(string strSpell, string strContext)
        {
            WordVO wordVO = null;

            if (!Words.ContainsKey(strSpell))
            {
                wordVO = new WordVO(strSpell);
                Words.Add(strSpell, wordVO);
            }
            else
            {
                wordVO = Words[strSpell];
            }
            wordVO.AddContext(strContext);
        }
Esempio n. 4
0
        public void AddWord(string strSpell, AddInfo addInfo)
        {
            WordVO wordVO = null;

            if (!Words.ContainsKey(strSpell))
            {
                wordVO = new WordVO(strSpell);
                Words.Add(strSpell, wordVO);
            }
            else
            {
                wordVO = Words[strSpell];
            }
            wordVO.AddAddInfo(addInfo);
        }