Changeset 10707 for branches/DataPreprocessing
- Timestamp:
- 04/02/14 14:13:44 (11 years ago)
- Location:
- branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/ComparisonFilterView.cs
r10693 r10707 140 140 } 141 141 } 142 this.Content.ConstraintData = new StringValue();142 //this.Content.ConstraintData = new StringValue(); 143 143 } 144 144 -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/FilterView.cs
r10703 r10707 12 12 using HeuristicLab.DataPreprocessing.Filter; 13 13 using HeuristicLab.Collections; 14 using HeuristicLab.Data; 14 15 15 16 namespace HeuristicLab.DataPreprocessing.Views … … 39 40 { 40 41 get { return (FilterContent)base.Content; } 41 set { base.Content = value; tbTotal.Text = Content.FilterLogic.PreprocessingData.Rows.ToString();}42 set { base.Content = value;} 42 43 } 43 44 … … 47 48 foreach (IFilter filter in e.Items) 48 49 { 49 if ( !filter.Active && (filter.ConstrainedValue == null || filter.ConstraintData == null || filter.ConstraintOperation == null))50 if (filterView.Content.CheckedItems.Contains(filter) && (filter.ConstraintData == null || string.IsNullOrEmpty(((StringValue)filter.ConstraintData).Value)) ) 50 51 { 51 filter View.Content.SetItemCheckedState(filter, false);52 filter.ConstraintData = new StringValue("0"); 52 53 } 53 else //change active state of filters 54 { 55 filter.Active = !filter.Active; 56 } 54 filter.Active = !filter.Active; 57 55 } 58 56 UpdateFilterInfo();
Note: See TracChangeset
for help on using the changeset viewer.