- Timestamp:
- 06/27/17 10:06:34 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis.Views/3.3/DataRowVisualPropertiesControl.cs
r14582 r15068 46 46 chartTypeComboBox.DataSource = Enum.GetValues(typeof(DataRowVisualProperties.DataRowChartType)); 47 47 lineStyleComboBox.DataSource = Enum.GetValues(typeof(DataRowVisualProperties.DataRowLineStyle)); 48 aggregationComboBox.DataSource = Enum.GetValues(typeof(DataRowVisualProperties.DataRowHistogramAggregation));49 48 clearColorButton.BackColor = Color.Transparent; 50 49 clearColorButton.BackgroundImage = VSImageLibrary.Delete; … … 66 65 startIndexZeroCheckBox.Checked = false; 67 66 lineWidthNumericUpDown.Value = 1; 68 binsNumericUpDown.Value = 1;69 binsApproximatelyRadioButton.Checked = false;70 binsExactRadioButton.Checked = false;71 aggregationComboBox.SelectedIndex = -1;72 67 displayNameTextBox.Text = String.Empty; 73 68 } else { … … 91 86 lineWidthNumericUpDown.Value = lineWidthNumericUpDown.Maximum; 92 87 else lineWidthNumericUpDown.Value = Content.LineWidth; 93 if (Content.Bins < binsNumericUpDown.Minimum)94 binsNumericUpDown.Value = binsNumericUpDown.Minimum;95 else if (Content.Bins > binsNumericUpDown.Maximum)96 binsNumericUpDown.Value = binsNumericUpDown.Maximum;97 else binsNumericUpDown.Value = Content.Bins;98 binsApproximatelyRadioButton.Checked = !Content.ExactBins;99 binsExactRadioButton.Checked = Content.ExactBins;100 aggregationComboBox.SelectedItem = Content.Aggregation;101 88 displayNameTextBox.Text = Content.DisplayName; 102 89 isVisibleInLegendCheckBox.Checked = Content.IsVisibleInLegend; … … 110 97 clearColorButton.Visible = Content != null && !Content.Color.IsEmpty; 111 98 lineChartGroupBox.Enabled = Content != null && Content.ChartType == DataRowVisualProperties.DataRowChartType.Line; 112 histoGramGroupBox.Enabled = Content != null && Content.ChartType == DataRowVisualProperties.DataRowChartType.Histogram;113 99 isVisibleInLegendCheckBox.Enabled = Content != null; 114 100 } … … 187 173 } 188 174 189 private void binsNumericUpDown_ValueChanged(object sender, EventArgs e) {190 if (!SuppressEvents && Content != null) {191 Content.Bins = (int)binsNumericUpDown.Value;192 }193 }194 195 private void binNumberRadioButton_CheckedChanged(object sender, EventArgs e) {196 if (!SuppressEvents && Content != null) {197 SuppressEvents = true;198 try {199 Content.ExactBins = binsExactRadioButton.Checked;200 } finally { SuppressEvents = false; }201 }202 }203 204 private void aggregationComboBox_SelectedValueChanged(object sender, EventArgs e) {205 if (!SuppressEvents && Content != null) {206 SuppressEvents = true;207 try {208 Content.Aggregation = (DataRowVisualProperties.DataRowHistogramAggregation)aggregationComboBox.SelectedValue;209 } finally { SuppressEvents = false; }210 }211 }212 213 175 private void displayNameTextBox_Validated(object sender, EventArgs e) { 214 176 if (!SuppressEvents && Content != null) {
Note: See TracChangeset
for help on using the changeset viewer.