- Timestamp:
- 10/07/15 16:47:17 (9 years ago)
- Location:
- trunk/sources/HeuristicLab.DataPreprocessing/3.4/Implementations
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.DataPreprocessing/3.4/Implementations/DataGridContent.cs ¶
r12983 r12986 41 41 public IFilterLogic FilterLogic { get; private set; } 42 42 43 private IEnumerable<string> rowNames;44 45 43 public int Rows { 46 44 get { … … 72 70 public IEnumerable<string> RowNames { 73 71 get { 74 return rowNames;72 return Enumerable.Range(1, Rows).Select(n => n.ToString()); 75 73 } 76 74 set { … … 103 101 FilterLogic = theFilterLogic; 104 102 PreProcessingData = preProcessingData; 105 createRowNames();106 103 } 107 104 … … 116 113 public void DeleteRows(IEnumerable<int> rows) { 117 114 PreProcessingData.DeleteRowsWithIndices(rows); 118 createRowNames();119 115 } 120 116 … … 133 129 public bool SetValue(string value, int rowIndex, int columnIndex) { 134 130 return PreProcessingData.SetValue(value, columnIndex, rowIndex); 135 }136 137 private void createRowNames() {138 rowNames = Enumerable.Range(1, Rows).Select(n => n.ToString());139 131 } 140 132 -
TabularUnified trunk/sources/HeuristicLab.DataPreprocessing/3.4/Implementations/TransactionalPreprocessingData.cs ¶
r12983 r12986 225 225 if (!IsInTransaction) 226 226 OnChanged(DataPreprocessingChangedEventType.DeleteRow, -1, -1); 227 ResetPartitions(); 227 228 } 228 229 … … 235 236 if (!IsInTransaction) 236 237 OnChanged(DataPreprocessingChangedEventType.AddRow, -1, rowIndex); 238 ResetPartitions(); 237 239 } 238 240 … … 244 246 if (!IsInTransaction) 245 247 OnChanged(DataPreprocessingChangedEventType.DeleteRow, -1, rowIndex); 248 ResetPartitions(); 246 249 } 247 250 … … 284 287 } 285 288 289 290 private void ResetPartitions() { 291 TrainingPartition = new IntRange(); 292 TestPartition = new IntRange(); 293 } 286 294 287 295 #endregion
Note: See TracChangeset
for help on using the changeset viewer.