Free cookie consent management tool by TermsFeed Policy Generator

source: stable/HeuristicLab.DataPreprocessing.Views/3.4/CheckedFilterCollectionView.cs @ 12214

Last change on this file since 12214 was 11114, checked in by mkommend, 10 years ago

#2206: Merged data preprocessing into the trunk.

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