private void LoadTv() { string keyword = txtKeyword.Text.Trim(); Thread th = new Thread(() => { Helper.GlobalData.windows.ShowLoad(this); try { IBLL.ICommonBLL bll = new BLL.CommonBLL(); cust_list = bll.GetCustList(keyword); this.Invoke((MethodInvoker) delegate { Cursor.Current = Cursors.WaitCursor; this.tv.Nodes.Clear(); TreeNode tn = new TreeNode("客户信息"); tn.Tag = ""; this.tv.Nodes.Add(tn); LoadTreeView(); Cursor.Current = Cursors.Default; }); } catch (Exception ex) { LogHelper.writeLog("SysSetting_Load", ex.ToString()); MsgForm.ShowFrom(ex); } Helper.GlobalData.windows.CloseLoad(this); }); th.Start(); }