Exemplo n.º 1
0
        /*
         * 处理serch
         */
        //add()数据
        public void serch_add_data(string name, Word mm)
        {
            user muser = serchdata(name);

            serchdatasmessage mserchmassage = muser.mserch;

            mserchmassage.addnewdata(mm, mserchmassage.getmsderchdatanode());
        }
Exemplo n.º 2
0
        //搜索返回数据
        public Word serch_result(string username, string wordstr)
        {
            user muser = serchdata_(username);

            if (muser == null)
            {
                return(null);
            }
            serchdatasmessage mserch = muser.mserch;

            if (mserch == null)
            {
                return(null);
            }

            Word mword = mserch.serchofword(mserch.getmsderchdatanode(), wordstr);


            return(mword);
        }