Changeset 10964 for branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.4/Implementations/DataGridContent.cs
- Timestamp:
- 06/11/14 10:40:01 (10 years ago)
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.