Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/18/17 12:29:59 (7 years ago)
Author:
pfleck
Message:

#2709

  • Fixed initial selection of the grouping text box (empty string instead of null to select the first entry).
  • General code fixes (removed unnessecary bank lines and code, class member order, ...)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/HistogramView.cs

    r14993 r14996  
    2828  [Content(typeof(HistogramContent), true)]
    2929  public partial class HistogramView : PreprocessingChartView {
    30 
    3130    public new HistogramContent Content {
    3231      get { return (HistogramContent)base.Content; }
     
    4443    protected override void OnContentChanged() {
    4544      base.OnContentChanged();
    46       classifierComboBox.Items.Clear();
    47       classifierComboBox.Items.Add("");
     45      groupingComboBox.Items.Clear();
     46      groupingComboBox.Items.Add(string.Empty);
    4847
    4948      if (Content != null) {
    5049        foreach (string var in PreprocessingChartContent.GetVariableNamesForGrouping(Content.PreprocessingData)) {
    51           classifierComboBox.Items.Add(var);
     50          groupingComboBox.Items.Add(var);
    5251        }
    5352
    54         classifierComboBox.SelectedItem = Content.GroupingVariableName;
     53        groupingComboBox.SelectedItem = Content.GroupingVariableName ?? string.Empty;
    5554      }
    5655    }
     
    6261
    6362    private void classifierComboBox_SelectedIndexChanged(object sender, EventArgs e) {
    64       Content.GroupingVariableName = classifierComboBox.SelectedItem.ToString();
     63      Content.GroupingVariableName = groupingComboBox.SelectedItem.ToString();
    6564
    6665      // rebuild datatables
Note: See TracChangeset for help on using the changeset viewer.