source: branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/CheckedFilterCollectionView.cs @ 10813

Last change on this file since 10813 was 10813, checked in by psteiner, 8 years ago

BugFix within the logical conjunction of filters
persistence of filters in content

File size: 970 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.ComponentModel;
4using System.Drawing;
5using System.Data;
6using System.Linq;
7using System.Text;
8using System.Windows.Forms;
9using HeuristicLab.Core.Views;
10using HeuristicLab.Collections;
11using HeuristicLab.MainForm;
12using HeuristicLab.Core;
13using HeuristicLab.DataPreprocessing.Filter;
14
15namespace HeuristicLab.DataPreprocessing.Views
16{
17  [View("CheckedFilterCollection View")]
18  [Content(typeof(ICheckedItemCollection<>), false)]
19  [Content(typeof(CheckedItemCollection<>), false)]
20  public partial class CheckedFilterCollectionView : CheckedItemCollectionView<IFilter>
21  {
22    public CheckedFilterCollectionView()
23    {
24      InitializeComponent();
25    }
26
27    protected override void addButton_Click(object sender, EventArgs e)
28    {
29      IFilter filter = new ComparisonFilter();
30      Content.Add(filter);
31      Content.SetItemCheckedState(filter, false);
32    }
33
34  }
35}
Note: See TracBrowser for help on using the repository browser.