Changeset 12986 for trunk/sources/HeuristicLab.DataPreprocessing/3.4/Implementations/DataGridContent.cs
- Timestamp:
- 10/07/15 16:47:17 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.