Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }