public void SetWordState(string strWord, bool bAlreadyLearned) { WordVO wordVO = null; if (!Words.ContainsKey(strWord)) { return; } else { wordVO = Words[strWord]; } wordVO.IsAlreadyLearn = bAlreadyLearned; }
public WordVO GetWord(string strSpell) { WordVO wordVO = null; if (!Words.ContainsKey(strSpell)) { return(new WordVO(strSpell)); } else { wordVO = Words[strSpell]; } return(wordVO); }
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); }
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); }