Changeset 14583 for branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/HistogramView.cs
- Timestamp:
- 01/18/17 13:44:34 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/HistogramView.cs
r14581 r14583 36 36 public HistogramView() { 37 37 InitializeComponent(); 38 aggregationComboBox.DataSource = Enum.GetValues(typeof(DataRowVisualProperties.DataRowHistogramAggregation)); 39 aggregationComboBox.SelectedItem = DataRowVisualProperties.DataRowHistogramAggregation.Overlapping; 38 40 } 39 41 … … 82 84 classRow.Name = group.Key; 83 85 classRow.VisualProperties.ChartType = DataRowVisualProperties.DataRowChartType.Histogram; 86 classRow.VisualProperties.Aggregation = (DataRowVisualProperties.DataRowHistogramAggregation)aggregationComboBox.SelectedItem; 84 87 classRow.Values.AddRange(group); 85 88 dataTable.Rows.Add(classRow); … … 96 99 GenerateLayout(); 97 100 } 101 102 private void aggregationComboBox_SelectedIndexChanged(object sender, EventArgs e) { 103 foreach (var dt in dataTables.Values) { 104 foreach (var row in dt.Rows) { 105 row.VisualProperties.Aggregation = (DataRowVisualProperties.DataRowHistogramAggregation)aggregationComboBox.SelectedItem; 106 } 107 } 108 } 98 109 } 99 110 }
Note: See TracChangeset
for help on using the changeset viewer.