Changeset 14993 for branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/HistogramView.cs
- Timestamp:
- 05/17/17 13:22:51 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/HistogramView.cs
r14725 r14993 28 28 [Content(typeof(HistogramContent), true)] 29 29 public partial class HistogramView : PreprocessingChartView { 30 30 31 public new HistogramContent Content { 31 32 get { return (HistogramContent)base.Content; } … … 37 38 aggregationComboBox.DataSource = Enum.GetValues(typeof(DataRowVisualProperties.DataRowHistogramAggregation)); 38 39 aggregationComboBox.SelectedItem = DataRowVisualProperties.DataRowHistogramAggregation.Overlapping; 40 orderComboBox.DataSource = Enum.GetValues(typeof(PreprocessingChartContent.LegendOrder)); 41 orderComboBox.SelectedItem = PreprocessingChartContent.LegendOrder.Appearance; 39 42 } 40 43 … … 55 58 protected override DataTable CreateDataTable(string variableName) { 56 59 var aggregation = (DataRowVisualProperties.DataRowHistogramAggregation)aggregationComboBox.SelectedItem; 57 return HistogramContent.CreateHistogram(Content.PreprocessingData, variableName, Content.GroupingVariableName, aggregation );60 return HistogramContent.CreateHistogram(Content.PreprocessingData, variableName, Content.GroupingVariableName, aggregation, Content.Order); 58 61 } 59 62 … … 73 76 } 74 77 } 78 79 private void orderComboBox_SelectedIndexChanged(object sender, EventArgs e) { 80 Content.Order = (PreprocessingChartContent.LegendOrder)orderComboBox.SelectedItem; 81 82 // rebuild datatables 83 InitData(); 84 GenerateLayout(); 85 } 75 86 } 76 87 }
Note: See TracChangeset
for help on using the changeset viewer.