Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.ComponentModel;
|
---|
4 | using System.Drawing;
|
---|
5 | using System.Linq;
|
---|
6 | using System.Text;
|
---|
7 | using System.Windows.Forms;
|
---|
8 | using HeuristicLab.Core.Views;
|
---|
9 | using HeuristicLab.Collections;
|
---|
10 | using HeuristicLab.MainForm;
|
---|
11 | using HeuristicLab.Core;
|
---|
12 | using HeuristicLab.DataPreprocessing.Filter;
|
---|
13 |
|
---|
14 | namespace 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.