Changeset 5328 for branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/MetaOptimizationProblemView.cs
- Timestamp:
- 01/18/11 17:47:49 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/MetaOptimizationProblemView.cs
r5313 r5328 56 56 private void createExperimentButton_Click(object sender, EventArgs e) { 57 57 if (Content != null) { 58 long count = Content.ParameterConfigurationTree.GetCombinationCount(); 58 long max = 100000; 59 long count = Content.ParameterConfigurationTree.GetCombinationCount(max); 59 60 60 61 System.Windows.Forms.DialogResult result = System.Windows.Forms.DialogResult.OK; 61 62 if (count > 512) { 62 result = System.Windows.Forms.MessageBox.Show(string.Format("Do you really want to create {0} optimizers? Be aware that this might take a significant amount of time and memory.", count), "Create Experiment", System.Windows.Forms.MessageBoxButtons.OKCancel); 63 if (count == max) { 64 result = System.Windows.Forms.MessageBox.Show(string.Format("Do you really want to create more than {0}+ optimizers? Be aware that this might take a significant amount of time and memory.", count), "Create Experiment", System.Windows.Forms.MessageBoxButtons.OKCancel); 65 } else { 66 result = System.Windows.Forms.MessageBox.Show(string.Format("Do you really want to create {0} optimizers? Be aware that this might take a significant amount of time and memory.", count), "Create Experiment", System.Windows.Forms.MessageBoxButtons.OKCancel); 67 } 63 68 } 64 69 if (result == System.Windows.Forms.DialogResult.OK) {
Note: See TracChangeset
for help on using the changeset viewer.