Last change
on this file since 10627 was
10589,
checked in by psteiner, 10 years ago
|
Implemented Filterview, ComparisonFilterView
|
File size:
1.4 KB
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.ComponentModel;
|
---|
4 | using System.Drawing;
|
---|
5 | using System.Data;
|
---|
6 | using System.Linq;
|
---|
7 | using System.Text;
|
---|
8 | using System.Windows.Forms;
|
---|
9 | using HeuristicLab.Core.Views;
|
---|
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(FilterContent), false)]
|
---|
18 | public partial class FilterView : ItemView
|
---|
19 | {
|
---|
20 | private CheckedItemCollectionView<IFilter> filterView;
|
---|
21 |
|
---|
22 | public FilterView()
|
---|
23 | {
|
---|
24 | InitializeComponent();
|
---|
25 | filterView = new CheckedItemCollectionView<IFilter>();
|
---|
26 | filterView.Dock = DockStyle.Fill;
|
---|
27 | groupBoxFilter.Controls.Add(filterView);
|
---|
28 | filterView.Content = new CheckedItemCollection<IFilter>();
|
---|
29 | filterView.Content.CheckedItemsChanged += Content_CheckedItemsChanged;
|
---|
30 | }
|
---|
31 |
|
---|
32 | public new FilterContent Content
|
---|
33 | {
|
---|
34 | get { return (FilterContent)base.Content; }
|
---|
35 | set { base.Content = value; }
|
---|
36 | }
|
---|
37 |
|
---|
38 | private void Content_CheckedItemsChanged(object sender, Collections.CollectionItemsChangedEventArgs<IFilter> e)
|
---|
39 | {
|
---|
40 | //todo: inform Logic for new filter
|
---|
41 | }
|
---|
42 |
|
---|
43 | private void applyFilterButton_Click(object sender, EventArgs e)
|
---|
44 | {
|
---|
45 | //todo: inform Logic for apply Filter
|
---|
46 | }
|
---|
47 |
|
---|
48 | }
|
---|
49 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.