Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/18/11 17:47:49 (13 years ago)
Author:
cneumuel
Message:

#1215

  • minor fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/MetaOptimizationProblemView.cs

    r5313 r5328  
    5656    private void createExperimentButton_Click(object sender, EventArgs e) {
    5757      if (Content != null) {
    58         long count = Content.ParameterConfigurationTree.GetCombinationCount();
     58        long max = 100000;
     59        long count = Content.ParameterConfigurationTree.GetCombinationCount(max);
    5960
    6061        System.Windows.Forms.DialogResult result = System.Windows.Forms.DialogResult.OK;
    6162        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          }
    6368        }
    6469        if (result == System.Windows.Forms.DialogResult.OK) {
Note: See TracChangeset for help on using the changeset viewer.