Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/06/10 03:37:29 (14 years ago)
Author:
swagner
Message:

Continued work on algorithm batch processing (#947).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/ExperimentView.cs

    r3274 r3275  
    7171      if (Content == null) {
    7272        optimizerListView.Content = null;
     73        runsView.Content = null;
    7374        tabControl.Enabled = false;
    7475        startButton.Enabled = pauseButton.Enabled = stopButton.Enabled = resetButton.Enabled = false;
     
    7778      } else {
    7879        optimizerListView.Content = Content.Optimizers;
     80        runsView.Content = Content.Runs;
    7981        tabControl.Enabled = true;
    8082        EnableDisableButtons();
     
    125127    }
    126128    private void resetButton_Click(object sender, EventArgs e) {
    127       if (MessageBox.Show(this, "Clear all runs executed so far?", "Clear All Runs?", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
    128         Content.Prepare(true);
    129       else
    130         Content.Prepare(false);
     129      if (Content.Runs.Count > 0) {
     130        if (MessageBox.Show(this, "Clear all runs executed so far?", "Clear All Runs?", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
     131          Content.Prepare(true);
     132        else
     133          Content.Prepare(false);
     134      } else {
     135        Content.Prepare();
     136      }
    131137    }
    132138    #endregion
Note: See TracChangeset for help on using the changeset viewer.