Changeset 12825 for branches/PerformanceComparison/HeuristicLab.Optimization.Views/3.3/IRRestarterView.cs
- Timestamp:
- 08/02/15 01:14:55 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PerformanceComparison/HeuristicLab.Optimization.Views/3.3/IRRestarterView.cs
r12804 r12825 77 77 maximizationCheckBox.CheckState = CheckState.Indeterminate; 78 78 terminationComboBox.SelectedIndex = -1; 79 storeBestSolutionCheckBox.CheckState = CheckState.Indeterminate; 79 80 80 81 algorithmViewHost.Content = null; … … 88 89 maximizationCheckBox.Checked = Content.Maximization; 89 90 terminationComboBox.SelectedItem = Content.TerminationCriterium; 91 storeBestSolutionCheckBox.Checked = Content.StoreSolutionInRun; 90 92 91 93 algorithmViewHost.Content = Content.Algorithm; … … 104 106 maximizationCheckBox.Enabled = Content != null && !ReadOnly && !Locked; 105 107 terminationComboBox.Enabled = Content != null && !ReadOnly && !Locked; 108 storeBestSolutionCheckBox.Enabled = Content != null && !ReadOnly && !Locked; 106 109 newAlgorithmButton.Enabled = Content != null && !ReadOnly; 107 110 openAlgorithmButton.Enabled = Content != null && !ReadOnly; … … 126 129 #region Content events 127 130 private void Content_PropertyChanged(object sender, PropertyChangedEventArgs e) { 131 if (InvokeRequired) { 132 Invoke((Action<object, PropertyChangedEventArgs>)Content_PropertyChanged, sender, e); 133 return; 134 } 128 135 SuppressEvents = true; 129 136 try { … … 135 142 case "Maximization": maximizationCheckBox.Checked = Content.Maximization; break; 136 143 case "MoveCostPerSolution": moveCostPerSolutionTextBox.Text = Content.MoveCostPerSolution.ToString(CultureInfo.CurrentCulture.NumberFormat); break; 144 case "StoreSolutionInRun": storeBestSolutionCheckBox.Checked = Content.StoreSolutionInRun; break; 137 145 case "Algorithm": algorithmViewHost.Content = Content.Algorithm; break; 138 146 case "CurrentRun": currentRunView.Content = Content.CurrentRun; break; … … 228 236 } 229 237 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; 230 247 } 231 248
Note: See TracChangeset
for help on using the changeset viewer.