- Timestamp:
- 04/28/16 15:46:10 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/CreateExperimentDialog.cs
r13681 r13813 26 26 using System.Linq; 27 27 using System.Text; 28 using System.Threading;29 28 using System.Windows.Forms; 30 29 using HeuristicLab.Core; … … 64 63 65 64 private StringBuilder failedInstances; 66 private readonly EventWaitHandle backgroundWorkerWaitHandle = new ManualResetEvent(false);67 65 private bool suppressTreeViewEventHandling, suppressCheckAllNoneEventHandling; 68 66 … … 105 103 SetMode(DialogMode.CreatingExperiment); 106 104 experimentCreationBackgroundWorker.RunWorkerAsync(); 107 backgroundWorkerWaitHandle.WaitOne(); // make sure the background worker has started before exiting108 105 } 109 106 … … 767 764 #region Experiment creation 768 765 private void experimentCreationBackgroundWorker_DoWork(object sender, DoWorkEventArgs e) { 769 backgroundWorkerWaitHandle.Set(); // notify the ok button that we're busy now770 766 failedInstances = new StringBuilder(); 771 767 var localExperiment = new Experiment();
Note: See TracChangeset
for help on using the changeset viewer.