Esempio n. 1
0
 private void btn_search_Click(object sender, EventArgs e)
 {
     if (txt_keyword.Text.Trim() != string.Empty)
     {
         if (Global.online)
         {
             List <string> lawIdList = RemoteWorker.getSearch(txt_keyword.Text.Trim());
             ((LibraryList)parentForm).LoadSearchResultLaw(lawIdList);
         }
         else
         {
             List <string> lawIdList = db.offLineSearch(queryParam, txt_keyword.Text.Trim());
             ((LibraryList)parentForm).LoadSearchResultLaw(lawIdList);
         }
     }
     else
     {
         ((LibraryList)parentForm).loadLocalLawList();//如果搜索内容为空,则显示全部法规
     }
 }