示例#1
0
 private void iWhatIf_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         _loadingControl = new LoadingControl();
         _loadingControl.ShowControlInContainer(this);
         Application.DoEvents();
         //var threadStart = new ThreadStart(DoWhatIf);
         var thread = new Thread(DoWhatIf);
         //thread.SetApartmentState(ApartmentState.STA);
         thread.Start(OrderAction.BUY);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }