Changeset 12725 for stable/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionTableView.cs
- Timestamp:
- 07/11/15 13:37:32 (9 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 12077,12112,12116-12117,12131,12173,12458,12599,12613,12631,12672,12684,12690,12692
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionTableView.cs
r12009 r12725 53 53 base.OnContentChanged(); 54 54 if (Content != null) { 55 runToRowMapping = Enumerable.Range(0, Content.Count).ToArray();56 55 UpdateRowAttributes(); 57 56 } … … 117 116 } 118 117 118 protected override void UpdateData() { 119 if (suppressUpdates) return; 120 base.UpdateData(); 121 } 122 119 123 protected override void UpdateColumnHeaders() { 120 124 HashSet<string> visibleColumnNames = new HashSet<string>(dataGridView.Columns.OfType<DataGridViewColumn>() … … 145 149 else { 146 150 suppressUpdates = Content.UpdateOfRunsInProgress; 147 if (!suppressUpdates) UpdateRowAttributes(); 151 if (!suppressUpdates) { 152 UpdateData(); 153 UpdateRowAttributes(); 154 } 148 155 } 149 156 } … … 171 178 protected override void ClearSorting() { 172 179 base.ClearSorting(); 173 runToRowMapping = Enumerable.Range(0, Content.Count).ToArray();174 180 UpdateRowAttributes(); 175 181 } … … 190 196 i++; 191 197 } 192 UpdateRowAttributes( );198 UpdateRowAttributes(rebuild: false); 193 199 return newSortedIndex; 194 200 } 195 201 196 private void UpdateRowAttributes() { 202 private void UpdateRowAttributes(bool rebuild = true) { 203 if (rebuild) runToRowMapping = Enumerable.Range(0, Content.Count).ToArray(); 197 204 int runIndex = 0; 198 205 foreach (IRun run in Content) {
Note: See TracChangeset
for help on using the changeset viewer.