Changeset 7975 for trunk/sources/HeuristicLab.Optimizer
- Timestamp:
- 06/10/12 18:26:30 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/CreateExperimentDialog.cs
r7974 r7975 284 284 selectAllCheckBox.Checked = treeViewNodes.Count() == instances.SelectMany(x => x.Value).Count(); 285 285 selectNoneCheckBox.Checked = !treeViewNodes.Any(x => x.Checked); 286 } finally { suppressCheckAllNoneEventHandling = false; } 286 } 287 finally { suppressCheckAllNoneEventHandling = false; } 287 288 UpdateVariationsLabel(); 288 289 } … … 298 299 } 299 300 } 300 } finally { suppressTreeViewEventHandling = false; } 301 } 302 finally { suppressTreeViewEventHandling = false; } 301 303 } 302 304 … … 320 322 try { 321 323 node.Parent.Checked = allChecked; 322 } finally { suppressTreeViewEventHandling = false; } 324 } 325 finally { suppressTreeViewEventHandling = false; } 323 326 } 324 327 } … … 328 331 if (selectAllCheckBox.Checked) { 329 332 suppressCheckAllNoneEventHandling = true; 330 try { selectNoneCheckBox.Checked = false; } finally { suppressCheckAllNoneEventHandling = false; } 333 try { selectNoneCheckBox.Checked = false; } 334 finally { suppressCheckAllNoneEventHandling = false; } 331 335 try { 332 336 suppressTreeViewEventHandling = true; … … 337 341 } 338 342 } 339 } finally { suppressTreeViewEventHandling = false; } 343 } 344 finally { suppressTreeViewEventHandling = false; } 340 345 } 341 346 } … … 346 351 if (selectNoneCheckBox.Checked) { 347 352 suppressCheckAllNoneEventHandling = true; 348 try { selectAllCheckBox.Checked = false; } finally { suppressCheckAllNoneEventHandling = false; } 353 try { selectAllCheckBox.Checked = false; } 354 finally { suppressCheckAllNoneEventHandling = false; } 349 355 try { 350 356 suppressTreeViewEventHandling = true; … … 355 361 } 356 362 } 357 } finally { suppressTreeViewEventHandling = false; } 363 } 364 finally { suppressTreeViewEventHandling = false; } 358 365 } 359 366 } … … 677 684 node.Collapse(); 678 685 selectNoneCheckBox.Checked = true; 679 } catch { } 686 } 687 catch { } 680 688 try { 681 689 SetMode(DialogMode.Normal); 682 690 if (e.Error != null) MessageBox.Show(e.Error.Message, "Error occurred", MessageBoxButtons.OK, MessageBoxIcon.Error); 683 } catch { } 691 } 692 catch { } 684 693 } 685 694 #endregion … … 710 719 try { 711 720 ProblemInstanceManager.LoadData(provider, descriptor, (IProblemInstanceConsumer)algorithm.Problem); 712 } catch (Exception ex) { 721 } 722 catch (Exception ex) { 713 723 failedInstances.AppendLine(descriptor.Name + ": " + ex.Message); 714 724 failed = true; … … 721 731 } 722 732 if (localExperiment != null) { 733 // don't do GUI stuff in do_work 723 734 // this step can take some time 724 SetMode(DialogMode.PreparingExperiment);725 735 experimentCreationBackgroundWorker.ReportProgress(-1); 726 736 localExperiment.Prepare(true); … … 833 843 experimentCreationProgressBar.Value = e.ProgressPercentage; 834 844 } else { 845 SetMode(DialogMode.PreparingExperiment); 846 835 847 experimentCreationProgressBar.Style = ProgressBarStyle.Marquee; 836 848 } … … 847 859 Close(); 848 860 } 849 } catch { } 861 } 862 catch { } 850 863 } 851 864 #endregion
Note: See TracChangeset
for help on using the changeset viewer.