- Timestamp:
- 06/11/14 10:40:01 (10 years ago)
- Location:
- branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.4/Implementations
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.4/Implementations/DataGridContent.cs
r10900 r10964 35 35 private readonly IFilterLogic filterLogic; 36 36 37 public DataGridContent(IDataGridLogic theDataGridLogic, IManipulationLogic theManipulationLogic, IFilterLogic theFilterLogic) {38 dataGridLogic = theDataGridLogic;39 manipulationLogic = theManipulationLogic;40 filterLogic = theFilterLogic;41 }42 43 public DataGridContent(DataGridContent dataGridContent, Cloner cloner)44 : base(dataGridContent, cloner) {45 }46 47 37 public IManipulationLogic ManipulationLogic { 48 38 get { return manipulationLogic; } … … 63 53 public static new Image StaticItemImage { 64 54 get { return HeuristicLab.Common.Resources.VSImageLibrary.Table; } 65 }66 67 public override IDeepCloneable Clone(Cloner cloner) {68 return new DataGridContent(this, cloner);69 55 } 70 56 … … 118 104 } 119 105 120 public bool Validate(string value, out string errorMessage) { 121 errorMessage = string.Empty; 122 return true; 106 public DataGridContent(IDataGridLogic theDataGridLogic, IManipulationLogic theManipulationLogic, IFilterLogic theFilterLogic) { 107 dataGridLogic = theDataGridLogic; 108 manipulationLogic = theManipulationLogic; 109 filterLogic = theFilterLogic; 110 } 111 112 public DataGridContent(DataGridContent dataGridContent, Cloner cloner) 113 : base(dataGridContent, cloner) { 114 115 } 116 117 public override IDeepCloneable Clone(Cloner cloner) { 118 return new DataGridContent(this, cloner); 123 119 } 124 120 … … 129 125 public bool SetValue(string value, int rowIndex, int columnIndex) { 130 126 return dataGridLogic.SetValue(value, columnIndex, rowIndex); 127 } 128 129 public event DataPreprocessingChangedEventHandler Changed { 130 add { dataGridLogic.Changed += value; } 131 remove { dataGridLogic.Changed -= value; } 132 } 133 134 135 136 #region unused stuff/not implemented but necessary due to IStringConvertibleMatrix 137 138 // Is not used since DataGridContentView overrides dataGridView_CellValidating and uses 139 // DataGridLogic#Validate(string value, out string errorMessage, int columnIndex) 140 public bool Validate(string value, out string errorMessage) { 141 errorMessage = string.Empty; 142 return true; 131 143 } 132 144 … … 144 156 145 157 public event EventHandler Reset; 158 #endregion 146 159 147 public event DataPreprocessingChangedEventHandler Changed {148 add { dataGridLogic.Changed += value; }149 remove { dataGridLogic.Changed -= value; }150 }151 160 } 152 161 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.4/Implementations/FilterContent.cs
r10877 r10964 23 23 using HeuristicLab.Common; 24 24 using HeuristicLab.Core; 25 using System.Collections.Generic;26 25 using HeuristicLab.DataPreprocessing.Filter; 27 26 … … 40 39 public bool isAndCombination = true; 41 40 42 public FilterContent(IFilterLogic theFilterLogic) {43 filterLogic = theFilterLogic;44 }45 41 46 42 public IFilterLogic FilterLogic { … … 50 46 } 51 47 52 public ICheckedItemCollection<IFilter> Filters 53 { 54 get 55 { 48 public ICheckedItemCollection<IFilter> Filters { 49 get { 56 50 return this.filters; 57 51 } 58 set 59 { 52 set { 60 53 this.filters = value; 61 54 } 62 55 } 63 56 64 public bool IsAndCombination 65 { 66 get 67 { 57 public bool IsAndCombination { 58 get { 68 59 return this.isAndCombination; 69 60 } 70 set 71 { 61 set { 72 62 this.isAndCombination = value; 73 63 } 74 64 } 75 65 76 public FilterContent(FilterContent content, Cloner cloner) 66 public FilterContent(IFilterLogic theFilterLogic) { 67 filterLogic = theFilterLogic; 68 } 69 70 protected FilterContent(FilterContent content, Cloner cloner) 77 71 : base(content, cloner) { 78 79 72 } 80 73 … … 82 75 return new FilterContent(this, cloner); 83 76 } 84 85 86 87 77 } 88 78 }
Note: See TracChangeset
for help on using the changeset viewer.