Changeset 12692 for trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionTableView.cs
- Timestamp:
- 07/08/15 15:59:11 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionTableView.cs
r12077 r12692 53 53 base.OnContentChanged(); 54 54 if (Content != null) { 55 runToRowMapping = Enumerable.Range(0, Content.Count).ToArray();56 55 UpdateRowAttributes(); 57 56 } … … 151 150 suppressUpdates = Content.UpdateOfRunsInProgress; 152 151 if (!suppressUpdates) { 152 UpdateData(); 153 153 UpdateRowAttributes(); 154 UpdateData();155 154 } 156 155 } … … 179 178 protected override void ClearSorting() { 180 179 base.ClearSorting(); 181 runToRowMapping = Enumerable.Range(0, Content.Count).ToArray();182 180 UpdateRowAttributes(); 183 181 } … … 198 196 i++; 199 197 } 200 UpdateRowAttributes( );198 UpdateRowAttributes(rebuild: false); 201 199 return newSortedIndex; 202 200 } 203 201 204 private void UpdateRowAttributes() { 202 private void UpdateRowAttributes(bool rebuild = true) { 203 if (rebuild) runToRowMapping = Enumerable.Range(0, Content.Count).ToArray(); 205 204 int runIndex = 0; 206 205 foreach (IRun run in Content) {
Note: See TracChangeset
for help on using the changeset viewer.