public void AddWord(string strBookName, string strWord, AddInfo addInfo) { BookVO book = null; if (!m_dicBooks.ContainsKey(strBookName)) { book = AddBook(strBookName); } else { book = m_dicBooks[strBookName]; } book.AddWord(strWord, addInfo); }
public void AddWord(string strBookName, string strWord, string strContext) { BookVO book = null; if (!m_dicBooks.ContainsKey(strBookName)) { book = AddBook(strBookName); } else { book = m_dicBooks[strBookName]; } AddInfo addInfo = new AddInfo(Util.GetUUID(), strContext, "", strWord, Util.GetCurTimeStamp()); book.AddWord(strWord, addInfo); //DB_AddWordIfNotExist(strWord); //DB_AddAddInfo(addInfo.ID, addInfo.Tag, addInfo.RelatedWord, addInfo.Context, addInfo.AddTime); }