Esempio n. 1
0
 public user()
 {
     this.name   = "ll";
     this.f      = 0;
     this.msort  = new SortedDictionary <string, string>();
     this.mserch = new serchdatasmessage();
 }
Esempio n. 2
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());
        }
Esempio n. 3
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);
        }