Changeset 14817


Ignore:
Timestamp:
04/04/17 09:34:41 (7 months ago)
Author:
lkammere
Message:

#2761: using TypeSelectorDialog for creating filters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4/CheckedFilterCollectionView.cs

    r14185 r14817  
    2121
    2222using System;
    23 using System.Windows.Forms;
    2423using HeuristicLab.Core;
    2524using HeuristicLab.Core.Views;
     
    3736
    3837    protected override void addButton_Click(object sender, EventArgs e) {
    39       IFilter filter = new ComparisonFilter();
    40       Content.Add(filter);
    41       Content.SetItemCheckedState(filter, false);
     38      IFilter filter = CreateItem();
     39      if (filter != null) {
     40        Content.Add(filter);
     41        Content.SetItemCheckedState(filter, false);
     42      }
    4243    }
    4344
Note: See TracChangeset for help on using the changeset viewer.