public Assort() { this.name = "ll"; this.f = 0; this.msort = new SortedDictionary <string, string>(); this.mserch = new Assortmentmessage(); }
//add()数据 public void serch_add_data(string name, Assortment mm) { Assort muser = serchdata(name); Assortmentmessage mserchmassage = muser.mserch; mserchmassage.addnewdata(mm, mserchmassage.getmsderchdatanode()); }
//搜索返回数据 public Assortment serch_result(string username, string wordstr) { Assort muser = serchdata_(username); if (muser == null) { return(null); } Assortmentmessage mserch = muser.mserch; if (mserch == null) { return(null); } Assortment mword = mserch.serchofword(mserch.getmsderchdatanode(), wordstr); return(mword); }