Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10258


Ignore:
Timestamp:
12/18/13 16:53:20 (11 years ago)
Author:
aesterer
Message:

Initialization of list elements moved from constructor to onContentChanged method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Views/DataPreprocessingView.cs

    r10256 r10258  
    2222    public DataPreprocessingView() {
    2323      InitializeComponent();
    24 
    25       InitializeContents();
    26 
     24      b
    2725    }
    2826
     27
     28    protected override void OnContentChanged() {
     29      base.OnContentChanged();
     30      InitializeContents();
     31    }
    2932
    3033    private ListViewItem CreateListViewItem(IItem item) {
     
    4043
    4144    private void InitializeContents() {
    42       IPreprocessingData data = Content != null ? this.Content.Data : null;
     45      IPreprocessingData data = Content.Data;
    4346      ISearchLogic searchLogic = new SearchLogic(data);
    4447      dataGridContent = new DataGridContent(new DataGridLogic(data), new PreprocessingDataManipulation(data, searchLogic, new StatisticsLogic(data, searchLogic)));
     
    5356    public new PreprocessingContext Content {
    5457      get { return (PreprocessingContext)base.Content; }
    55       set { base.Content = value; }
     58      set {
     59        base.Content = value;
     60      }
    5661    }
    5762
Note: See TracChangeset for help on using the changeset viewer.