Changeset 4518
- Timestamp:
- 09/27/10 15:23:46 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs
r4477 r4518 279 279 } 280 280 281 bool add ColumnNames = Content.ColumnNames.Any() && minRowIndex == 0;282 bool add RowNames = Content.RowNames.Any() && minColIndex == 0;281 bool addRowNames = dataGridView.AreAllCellsSelected(false); 282 bool addColumnNames = dataGridView.AreAllCellsSelected(false); 283 283 284 284 //add colum names … … 382 382 } 383 383 384 protected v oid ClearSorting() {384 protected virtual void ClearSorting() { 385 385 virtualRowIndizes = Enumerable.Range(0, Content.Rows).ToArray(); 386 386 sortedColumnIndizes.Clear(); -
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionTabularView.cs
r4435 r4518 81 81 DeregisterRunEvents(e.OldItems); 82 82 RegisterRunEvents(e.Items); 83 OnContentChanged();84 83 } 85 84 private void Content_ItemsRemoved(object sender, HeuristicLab.Collections.CollectionItemsChangedEventArgs<IRun> e) { … … 126 125 } 127 126 } 127 } 128 129 protected override void ClearSorting() { 130 base.ClearSorting(); 131 runToRowMapping = new int[Content.Count]; 132 for (int i = 0; i < runToRowMapping.Length; i++) 133 runToRowMapping[i] = i; 128 134 } 129 135 -
trunk/sources/HeuristicLab.Optimization/3.3/RunCollection.cs
r4419 r4518 72 72 AddResult(result.Key, result.Value); 73 73 } 74 base.OnCollectionReset(items, oldItems);75 OnReset();76 74 columnNameCache = null; 77 75 OnColumnNamesChanged(); 78 76 rowNamesCache = null; 77 base.OnCollectionReset(items, oldItems); 79 78 OnRowNamesChanged(); 79 OnReset(); 80 UpdateFiltering(false); 80 81 } 81 82 protected override void OnItemsAdded(IEnumerable<IRun> items) { … … 87 88 columnNamesChanged |= AddResult(result.Key, result.Value); 88 89 } 89 base.OnItemsAdded(items);90 OnReset();91 90 if (columnNamesChanged) { 92 91 columnNameCache = null; … … 94 93 } 95 94 rowNamesCache = null; 95 base.OnItemsAdded(items); 96 96 OnRowNamesChanged(); 97 this.UpdateFiltering(false); 97 OnReset(); 98 UpdateFiltering(false); 98 99 } 99 100 protected override void OnItemsRemoved(IEnumerable<IRun> items) { … … 105 106 columnNamesChanged |= RemoveResultName(resultName); 106 107 } 107 base.OnItemsRemoved(items);108 OnReset();109 108 if (columnNamesChanged) { 110 109 columnNameCache = null; … … 112 111 } 113 112 rowNamesCache = null; 113 base.OnItemsRemoved(items); 114 114 OnRowNamesChanged(); 115 OnReset(); 115 116 } 116 117
Note: See TracChangeset
for help on using the changeset viewer.