- Timestamp:
- 06/27/12 17:34:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionTabularView.cs
r7469 r8139 164 164 RunCollectionRowComparer rowComparer = new RunCollectionRowComparer(); 165 165 if (sortedColumns.Count() != 0) { 166 rowComparer.SortedIndi zes = sortedColumns;166 rowComparer.SortedIndices = sortedColumns; 167 167 rowComparer.Matrix = Content; 168 168 Array.Sort(newSortedIndex, rowComparer); … … 194 194 } 195 195 196 private List<KeyValuePair<int, SortOrder>> sortedIndi zes;197 public IEnumerable<KeyValuePair<int, SortOrder>> SortedIndi zes {198 get { return this.sortedIndi zes; }199 set { sortedIndi zes = new List<KeyValuePair<int, SortOrder>>(value); }196 private List<KeyValuePair<int, SortOrder>> sortedIndices; 197 public IEnumerable<KeyValuePair<int, SortOrder>> SortedIndices { 198 get { return this.sortedIndices; } 199 set { sortedIndices = new List<KeyValuePair<int, SortOrder>>(value); } 200 200 } 201 201 private RunCollection matrix; … … 212 212 if (matrix == null) 213 213 throw new InvalidOperationException("Could not sort IStringConvertibleMatrix if the matrix member is null."); 214 if (sortedIndi zes == null)214 if (sortedIndices == null) 215 215 return 0; 216 216 217 foreach (KeyValuePair<int, SortOrder> pair in sortedIndi zes.Where(p => p.Value != SortOrder.None)) {217 foreach (KeyValuePair<int, SortOrder> pair in sortedIndices.Where(p => p.Value != SortOrder.None)) { 218 218 value1 = matrix.GetValue(x, pair.Key); 219 219 value2 = matrix.GetValue(y, pair.Key);
Note: See TracChangeset
for help on using the changeset viewer.