Free cookie consent management tool by TermsFeed Policy Generator

source: branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/ComparisonFilterView.cs @ 10625

Last change on this file since 10625 was 10589, checked in by psteiner, 10 years ago

Implemented Filterview, ComparisonFilterView

File size: 2.5 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21
22using HeuristicLab.Core.Views;
23using HeuristicLab.Core;
24using HeuristicLab.Data;
25using HeuristicLab.DataPreprocessing.Filter;
26using HeuristicLab.MainForm;
27using System.Collections;
28
29namespace HeuristicLab.DataPreprocessing.Views {
30  [View("Comparison Filter View")]
31  [Content(typeof(ComparisonFilter), false)]
32  public partial class ComparisonFilterView : ItemView {
33    public ComparisonFilterView() {
34      InitializeComponent();
35    }
36
37    public new ComparisonFilter Content {
38      get { return (ComparisonFilter)base.Content; }
39      set { base.Content = value; }
40    }
41
42    //protected override void OnContentChanged() {
43    //  base.OnContentChanged();
44    //  cbAttr.Items.Clear();
45    //  cbFilterOperation.Items.Clear();
46    //  if (Content != null)
47    //  {
48    //    cbFilterOperation.Items.AddRange(Content.AllowedConstraintOperations.ToArray());
49    //    if (Content.ConstraintOperation != null)
50    //      cbFilterOperation.SelectedItem = Content.ConstraintOperation;
51    //    else if (cbFilterOperation.Items.Count != 0)
52    //      cbFilterOperation.SelectedIndex = 0;
53    //    UpdateColumnComboBox();
54    //    ReadOnly = Content.Active;
55    //  }
56    //}
57
58
59
60    //protected virtual void UpdateColumnComboBox()
61    //{
62    //  this.cbAttr.Items.Clear();
63    //  if (Content.ConstrainedValue != null)
64    //  {
65    //    this.cbAttr.Items.AddRange(((IStringConvertibleMatrix)Content.ConstrainedValue).ColumnNames.ToArray());
66    //    if (!string.IsNullOrEmpty(Content.ConstraintColumn))
67    //      this.cbAttr.SelectedItem = Content.ConstraintColumn;
68    //  }
69    //}
70
71  }
72}
Note: See TracBrowser for help on using the repository browser.