Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/24/17 09:51:10 (7 years ago)
Author:
abeham
Message:

#2457: merged trunk into branch

Location:
branches/PerformanceComparison/HeuristicLab.Analysis.Views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/PerformanceComparison/HeuristicLab.Analysis.Views

  • branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/DataRowVisualPropertiesControl.cs

    r14600 r15282  
    4646      chartTypeComboBox.DataSource = Enum.GetValues(typeof(DataRowVisualProperties.DataRowChartType));
    4747      lineStyleComboBox.DataSource = Enum.GetValues(typeof(DataRowVisualProperties.DataRowLineStyle));
    48       aggregationComboBox.DataSource = Enum.GetValues(typeof(DataRowVisualProperties.DataRowHistogramAggregation));
    4948      clearColorButton.BackColor = Color.Transparent;
    5049      clearColorButton.BackgroundImage = VSImageLibrary.Delete;
     
    6665          startIndexZeroCheckBox.Checked = false;
    6766          lineWidthNumericUpDown.Value = 1;
    68           binsNumericUpDown.Value = 1;
    69           binsApproximatelyRadioButton.Checked = false;
    70           binsExactRadioButton.Checked = false;
    71           aggregationComboBox.SelectedIndex = -1;
    7267          displayNameTextBox.Text = String.Empty;
    7368        } else {
     
    9186            lineWidthNumericUpDown.Value = lineWidthNumericUpDown.Maximum;
    9287          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;
    10188          displayNameTextBox.Text = Content.DisplayName;
    10289          isVisibleInLegendCheckBox.Checked = Content.IsVisibleInLegend;
     
    11097      clearColorButton.Visible = Content != null && !Content.Color.IsEmpty;
    11198      lineChartGroupBox.Enabled = Content != null && Content.ChartType == DataRowVisualProperties.DataRowChartType.Line;
    112       histoGramGroupBox.Enabled = Content != null && Content.ChartType == DataRowVisualProperties.DataRowChartType.Histogram;
    11399      isVisibleInLegendCheckBox.Enabled = Content != null;
    114100    }
     
    187173    }
    188174
    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 
    213175    private void displayNameTextBox_Validated(object sender, EventArgs e) {
    214176      if (!SuppressEvents && Content != null) {
Note: See TracChangeset for help on using the changeset viewer.