Changeset 13671 for trunk/sources
- Timestamp:
- 03/09/16 12:33:58 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/CreateExperimentDialog.cs
r13406 r13671 343 343 selectAllCheckBox.Checked = treeViewNodes.Count() == instances.SelectMany(x => x.Value).Count(); 344 344 selectNoneCheckBox.Checked = !treeViewNodes.Any(x => x.Checked); 345 } finally { suppressCheckAllNoneEventHandling = false; } 345 } 346 finally { suppressCheckAllNoneEventHandling = false; } 346 347 UpdateVariationsLabel(); 347 348 } … … 357 358 } 358 359 } 359 } finally { suppressTreeViewEventHandling = false; } 360 } 361 finally { suppressTreeViewEventHandling = false; } 360 362 } 361 363 … … 379 381 try { 380 382 node.Parent.Checked = allChecked; 381 } finally { suppressTreeViewEventHandling = false; } 383 } 384 finally { suppressTreeViewEventHandling = false; } 382 385 } 383 386 } … … 387 390 if (selectAllCheckBox.Checked) { 388 391 suppressCheckAllNoneEventHandling = true; 389 try { selectNoneCheckBox.Checked = false; } finally { suppressCheckAllNoneEventHandling = false; } 392 try { selectNoneCheckBox.Checked = false; } 393 finally { suppressCheckAllNoneEventHandling = false; } 390 394 try { 391 395 suppressTreeViewEventHandling = true; … … 396 400 } 397 401 } 398 } finally { suppressTreeViewEventHandling = false; } 402 } 403 finally { suppressTreeViewEventHandling = false; } 399 404 } 400 405 UpdateVariationsLabel(); … … 406 411 if (selectNoneCheckBox.Checked) { 407 412 suppressCheckAllNoneEventHandling = true; 408 try { selectAllCheckBox.Checked = false; } finally { suppressCheckAllNoneEventHandling = false; } 413 try { selectAllCheckBox.Checked = false; } 414 finally { suppressCheckAllNoneEventHandling = false; } 409 415 try { 410 416 suppressTreeViewEventHandling = true; … … 415 421 } 416 422 } 417 } finally { suppressTreeViewEventHandling = false; } 423 } 424 finally { suppressTreeViewEventHandling = false; } 418 425 } 419 426 UpdateVariationsLabel(); … … 720 727 var node = new TreeNode(desc.Name) { Tag = desc }; 721 728 providerNode.Nodes.Add(node); 722 if (providerNode.Nodes.Count == 1) 723 nodes.Add(providerNode); 724 } 725 double progress = nodes.Count > 0 ? i / (double)nodes.Count : 0.0; 729 } 730 731 //Do not add instance providers without data descriptors 732 if (providerNode.Nodes.Count > 0) { 733 nodes.Add(providerNode); 734 } 735 736 double progress = nodes.Count > 0 ? i / (double)instanceProviders.Length : 0.0; 726 737 instanceDiscoveryBackgroundWorker.ReportProgress((int)(100 * progress), provider.Name); 727 738 } … … 744 755 } 745 756 selectNoneCheckBox.Checked = true; 746 } catch { } 757 } 758 catch { } 747 759 try { 748 760 SetMode(DialogMode.Normal); 749 761 if (e.Error != null) MessageBox.Show(e.Error.Message, "Error occurred", MessageBoxButtons.OK, MessageBoxIcon.Error); 750 } catch { } 762 } 763 catch { } 751 764 } 752 765 #endregion … … 763 776 try { 764 777 AddParameterVariations(Optimizer, localExperiment, ref counter, totalVariations); 765 } catch (OperationCanceledException) { 778 } 779 catch (OperationCanceledException) { 766 780 e.Cancel = true; 767 781 return; … … 775 789 try { 776 790 ProblemInstanceManager.LoadData(provider, descriptor, (IProblemInstanceConsumer)algorithm.Problem); 777 } catch (Exception ex) { 791 } 792 catch (Exception ex) { 778 793 failedInstances.AppendLine(descriptor.Name + ": " + ex.Message); 779 794 failed = true; … … 788 803 AddParameterVariations(algorithm, localExperiment, ref counter, totalVariations); 789 804 } 790 } catch (OperationCanceledException) { 805 } 806 catch (OperationCanceledException) { 791 807 e.Cancel = true; 792 808 return; … … 939 955 Close(); 940 956 } 941 } catch { } 957 } 958 catch { } 942 959 } 943 960 #endregion
Note: See TracChangeset
for help on using the changeset viewer.