Changeset 15282 for branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/DataTableVisualPropertiesControl.cs
- Timestamp:
- 07/24/17 09:51:10 (7 years ago)
- Location:
- branches/PerformanceComparison/HeuristicLab.Analysis.Views
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PerformanceComparison/HeuristicLab.Analysis.Views
- Property svn:mergeinfo changed
-
branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/DataTableVisualPropertiesControl.cs
r14600 r15282 20 20 #endregion 21 21 22 using System; 23 using System.Drawing; 24 using System.Windows.Forms; 22 25 using HeuristicLab.MainForm; 23 26 using HeuristicLab.MainForm.WindowsForms; 24 using System.Drawing;25 using System.Windows.Forms;26 27 27 28 namespace HeuristicLab.Analysis.Views { … … 58 59 errorProvider.SetIconPadding(yAxisSecondaryMinimumFixedTextBox, 2); 59 60 errorProvider.SetIconPadding(yAxisSecondaryMaximumFixedTextBox, 2); 61 histogramAggregationComboBox.DataSource = Enum.GetValues(typeof(DataTableVisualProperties.DataTableHistogramAggregation)); 60 62 } 61 63 … … 101 103 yAxisSecondaryMaximumFixedTextBox.Text = string.Empty; 102 104 yAxisSecondaryLogScaleCheckBox.Checked = false; 105 106 histogramBinsNumericUpDown.Value = 1; 107 histogramBinsApproximatelyRadioButton.Checked = false; 108 histogramBinsExactRadioButton.Checked = false; 109 histogramAggregationComboBox.SelectedIndex = -1; 103 110 } else { 104 111 titleFontLabel.Text = "( " + FormatFont(Content.TitleFont) + " )"; … … 139 146 yAxisSecondaryMaximumFixedTextBox.Text = Content.SecondYAxisMaximumFixedValue.ToString(); 140 147 yAxisSecondaryLogScaleCheckBox.Checked = Content.SecondYAxisLogScale; 148 149 if (Content.HistogramBins < histogramBinsNumericUpDown.Minimum) 150 histogramBinsNumericUpDown.Value = histogramBinsNumericUpDown.Minimum; 151 else if (Content.HistogramBins > histogramBinsNumericUpDown.Maximum) 152 histogramBinsNumericUpDown.Value = histogramBinsNumericUpDown.Maximum; 153 else histogramBinsNumericUpDown.Value = Content.HistogramBins; 154 histogramBinsApproximatelyRadioButton.Checked = !Content.HistogramExactBins; 155 histogramBinsExactRadioButton.Checked = Content.HistogramExactBins; 156 histogramAggregationComboBox.SelectedItem = Content.HistogramAggregation; 141 157 } 142 158 } finally { SuppressEvents = false; } … … 483 499 } 484 500 } 501 502 private void histogramBinsNumericUpDown_ValueChanged(object sender, System.EventArgs e) { 503 if (!SuppressEvents && Content != null) { 504 Content.HistogramBins = (int)histogramBinsNumericUpDown.Value; 505 } 506 } 507 508 private void histogramBinsExactRadioButton_CheckedChanged(object sender, System.EventArgs e) { 509 if (!SuppressEvents && Content != null) { 510 SuppressEvents = true; 511 try { 512 Content.HistogramExactBins = histogramBinsExactRadioButton.Checked; 513 } finally { SuppressEvents = false; } 514 } 515 } 516 517 private void histogramAggregationComboBox_SelectedValueChanged(object sender, System.EventArgs e) { 518 if (!SuppressEvents && Content != null) { 519 SuppressEvents = true; 520 try { 521 Content.HistogramAggregation = (DataTableVisualProperties.DataTableHistogramAggregation)histogramAggregationComboBox.SelectedValue; 522 } finally { SuppressEvents = false; } 523 } 524 } 485 525 #endregion 486 526
Note: See TracChangeset
for help on using the changeset viewer.