线程
1 new Thread(() => 2 { 3 try 4 { 5 Action ac = () => 6 { 7 //MessageBox.Show(_buy.StrID.ToString()); 8 }; 9 this.Invoke(ac);//其实不用委托的,因为和ui无关。 10 } 11 catch (Exception ex) 12 { 13 MessageBox.Show(ex.Message); 14 SharedHeng9Factory.ErrorLogWriter.WriterErrorMessage("frmPJInStorage", "btnSave_Click_Thread", ex); 15 } 16 }).Start();

浙公网安备 33010602011771号