private void LoadTv() { string keyword = txtKeyword.Text.Trim(); Thread th = new Thread(() => { Helper.GlobalData.windows.ShowLoad(this); try { IBLL.ICommonBLL bll = new BLL.CommonBLL(); sup_list = bll.GetSupList(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(); }