Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/02/15 01:14:55 (9 years ago)
Author:
abeham
Message:

#2431:

  • removed output of RTs, RTus, ...
  • added 2nd row to charts that state restarts until a target was achieved
  • added option to include or exclude solution results
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PerformanceComparison/HeuristicLab.Optimization.Views/3.3/IRRestarterView.cs

    r12804 r12825  
    7777          maximizationCheckBox.CheckState = CheckState.Indeterminate;
    7878          terminationComboBox.SelectedIndex = -1;
     79          storeBestSolutionCheckBox.CheckState = CheckState.Indeterminate;
    7980
    8081          algorithmViewHost.Content = null;
     
    8889          maximizationCheckBox.Checked = Content.Maximization;
    8990          terminationComboBox.SelectedItem = Content.TerminationCriterium;
     91          storeBestSolutionCheckBox.Checked = Content.StoreSolutionInRun;
    9092
    9193          algorithmViewHost.Content = Content.Algorithm;
     
    104106      maximizationCheckBox.Enabled = Content != null && !ReadOnly && !Locked;
    105107      terminationComboBox.Enabled = Content != null && !ReadOnly && !Locked;
     108      storeBestSolutionCheckBox.Enabled = Content != null && !ReadOnly && !Locked;
    106109      newAlgorithmButton.Enabled = Content != null && !ReadOnly;
    107110      openAlgorithmButton.Enabled = Content != null && !ReadOnly;
     
    126129    #region Content events
    127130    private void Content_PropertyChanged(object sender, PropertyChangedEventArgs e) {
     131      if (InvokeRequired) {
     132        Invoke((Action<object, PropertyChangedEventArgs>)Content_PropertyChanged, sender, e);
     133        return;
     134      }
    128135      SuppressEvents = true;
    129136      try {
     
    135142          case "Maximization": maximizationCheckBox.Checked = Content.Maximization; break;
    136143          case "MoveCostPerSolution": moveCostPerSolutionTextBox.Text = Content.MoveCostPerSolution.ToString(CultureInfo.CurrentCulture.NumberFormat); break;
     144          case "StoreSolutionInRun": storeBestSolutionCheckBox.Checked = Content.StoreSolutionInRun; break;
    137145          case "Algorithm": algorithmViewHost.Content = Content.Algorithm; break;
    138146          case "CurrentRun": currentRunView.Content = Content.CurrentRun; break;
     
    228236      }
    229237      Content.TerminationCriterium = (TerminationCriterium)terminationComboBox.SelectedItem;
     238    }
     239
     240    private void storeBestSolutionCheckBox_CheckedChanged(object sender, EventArgs e) {
     241      if (SuppressEvents) return;
     242      if (InvokeRequired) {
     243        Invoke((Action<object, EventArgs>)storeBestSolutionCheckBox_CheckedChanged, sender, e);
     244        return;
     245      }
     246      Content.StoreSolutionInRun = storeBestSolutionCheckBox.Checked;
    230247    }
    231248
Note: See TracChangeset for help on using the changeset viewer.