Changeset 10947 for branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/CopyOfStringConvertibleMatrixView.cs
- Timestamp:
- 06/04/14 14:57:45 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/CopyOfStringConvertibleMatrixView.cs
r10916 r10947 104 104 } 105 105 106 // Was private before 107 protected void Sort() { 108 virtualRowIndices = Sort(sortedColumnIndices); 109 UpdateSortGlyph(); 110 UpdateRowHeaders(); 111 dataGridView.Invalidate(); 112 } 113 114 // Was private before 115 protected List<KeyValuePair<int, SortOrder>> sortedColumnIndices; 116 106 117 #region unchanged copied from original - see HeuristicLab.Data.Views.StringConvertibleMatrix 107 118 108 119 protected int[] virtualRowIndices; 109 private List<KeyValuePair<int, SortOrder>> sortedColumnIndices;110 120 private RowComparer rowComparer; 111 121 … … 293 303 private Point[] GetSelectedCellsAsPoints() { 294 304 Point[] points = new Point[dataGridView.SelectedCells.Count]; 295 for (int i = 0; i < dataGridView.SelectedCells.Count; i++) 296 { 305 for (int i = 0; i < dataGridView.SelectedCells.Count; i++) { 297 306 points[i].X = dataGridView.SelectedCells[i].ColumnIndex; 298 307 points[i].Y = dataGridView.SelectedCells[i].RowIndex; … … 487 496 } 488 497 489 private void Sort() {490 virtualRowIndices = Sort(sortedColumnIndices);491 UpdateSortGlyph();492 UpdateRowHeaders();493 dataGridView.Invalidate();494 }495 498 protected virtual int[] Sort(IEnumerable<KeyValuePair<int, SortOrder>> sortedColumns) { 496 499 int[] newSortedIndex = Enumerable.Range(0, Content.Rows).ToArray(); … … 597 600 } 598 601 599 602 600 603 } 601 604 #endregion
Note: See TracChangeset
for help on using the changeset viewer.