- Timestamp:
- 07/02/12 15:40:59 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/CreateExperimentDialog.cs
r8095 r8179 319 319 selectAllCheckBox.Checked = treeViewNodes.Count() == instances.SelectMany(x => x.Value).Count(); 320 320 selectNoneCheckBox.Checked = !treeViewNodes.Any(x => x.Checked); 321 } 322 finally { suppressCheckAllNoneEventHandling = false; } 321 } finally { suppressCheckAllNoneEventHandling = false; } 323 322 UpdateVariationsLabel(); 324 323 } … … 334 333 } 335 334 } 336 } 337 finally { suppressTreeViewEventHandling = false; } 335 } finally { suppressTreeViewEventHandling = false; } 338 336 } 339 337 … … 357 355 try { 358 356 node.Parent.Checked = allChecked; 359 } 360 finally { suppressTreeViewEventHandling = false; } 357 } finally { suppressTreeViewEventHandling = false; } 361 358 } 362 359 } … … 366 363 if (selectAllCheckBox.Checked) { 367 364 suppressCheckAllNoneEventHandling = true; 368 try { selectNoneCheckBox.Checked = false; } 369 finally { suppressCheckAllNoneEventHandling = false; } 365 try { selectNoneCheckBox.Checked = false; } finally { suppressCheckAllNoneEventHandling = false; } 370 366 try { 371 367 suppressTreeViewEventHandling = true; … … 376 372 } 377 373 } 378 } 379 finally { suppressTreeViewEventHandling = false; } 374 } finally { suppressTreeViewEventHandling = false; } 380 375 } 381 376 UpdateVariationsLabel(); … … 387 382 if (selectNoneCheckBox.Checked) { 388 383 suppressCheckAllNoneEventHandling = true; 389 try { selectAllCheckBox.Checked = false; } 390 finally { suppressCheckAllNoneEventHandling = false; } 384 try { selectAllCheckBox.Checked = false; } finally { suppressCheckAllNoneEventHandling = false; } 391 385 try { 392 386 suppressTreeViewEventHandling = true; … … 397 391 } 398 392 } 399 } 400 finally { suppressTreeViewEventHandling = false; } 393 } finally { suppressTreeViewEventHandling = false; } 401 394 } 402 395 UpdateVariationsLabel(); … … 721 714 } catch (OperationCanceledException) { 722 715 e.Cancel = true; 723 localExperiment = null;724 716 return; 725 717 } … … 741 733 } catch (OperationCanceledException) { 742 734 e.Cancel = true; 743 localExperiment = null;744 735 return; 745 736 } … … 748 739 } 749 740 } 750 if (localExperiment != null) { 751 // this step can take some time 752 SetMode(DialogMode.PreparingExperiment); 753 experimentCreationBackgroundWorker.ReportProgress(-1); 754 localExperiment.Prepare(true); 755 experimentCreationBackgroundWorker.ReportProgress(100); 756 } 741 // this step can take some time 742 SetMode(DialogMode.PreparingExperiment); 743 experimentCreationBackgroundWorker.ReportProgress(-1); 744 localExperiment.Prepare(true); 745 experimentCreationBackgroundWorker.ReportProgress(100); 757 746 Experiment = localExperiment; 758 747 } 759 748 760 749 private void AddParameterVariations(IOptimizer optimizer, Experiment localExperiment, ref int counter, int totalVariations) { 761 var variations = experimentCreationBackgroundWorker_CalculateParameterVariations(optimizer);750 var variations = CalculateParameterVariations(optimizer); 762 751 foreach (var v in variations) { 763 752 if (experimentCreationBackgroundWorker.CancellationPending) … … 769 758 } 770 759 771 private IEnumerable<IOptimizer> experimentCreationBackgroundWorker_CalculateParameterVariations(IOptimizer optimizer) {760 private IEnumerable<IOptimizer> CalculateParameterVariations(IOptimizer optimizer) { 772 761 if (!boolParameters.Any() && !intParameters.Any() && !doubleParameters.Any() && !multipleChoiceParameters.Any()) { 773 762 var o = (IOptimizer)optimizer.Clone(); … … 885 874 Close(); 886 875 } 887 } 888 catch { } 876 } catch { } 889 877 } 890 878 #endregion
Note: See TracChangeset
for help on using the changeset viewer.