Changeset 3546 for trunk/sources
- Timestamp:
- 04/27/10 18:51:23 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs
r3454 r3546 145 145 146 146 private void UpdateRowHeaders() { 147 for (int i = dataGridView.FirstDisplayedScrollingRowIndex; i < dataGridView.FirstDisplayedScrollingRowIndex + dataGridView.DisplayedRowCount(true); i++) {147 for (int i = 0; i < dataGridView.RowCount; i++) { 148 148 if (Content.RowNames.Count() != 0) 149 dataGridView.Rows[i].HeaderCell.Value = Content.RowNames.ElementAt( i);149 dataGridView.Rows[i].HeaderCell.Value = Content.RowNames.ElementAt(virtualRowIndizes[i]); 150 150 else 151 151 dataGridView.Rows[i].HeaderCell.Value = "Row " + (i + 1); … … 290 290 virtualRowIndizes = Sort(sortedColumnIndizes); 291 291 UpdateSortGlyph(); 292 UpdateRowHeaders(); 292 293 dataGridView.Invalidate(); 293 294 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionBubbleChartView.cs
r3543 r3546 63 63 this.isSelecting = false; 64 64 65 65 66 66 this.chart.ChartAreas[0].CursorX.IsUserSelectionEnabled = true; 67 67 this.chart.ChartAreas[0].CursorY.IsUserSelectionEnabled = true; … … 293 293 view.Locked = this.Locked; 294 294 view.Show(); 295 } else {295 } else 296 296 this.draggedRun = run; 297 this.chart.ChartAreas[0].CursorX.SetSelectionPosition(double.NaN, double.NaN); 298 this.chart.ChartAreas[0].CursorY.SetSelectionPosition(double.NaN, double.NaN); 299 } 297 this.chart.ChartAreas[0].CursorX.SetSelectionPosition(double.NaN, double.NaN); 298 this.chart.ChartAreas[0].CursorY.SetSelectionPosition(double.NaN, double.NaN); 300 299 } 301 300 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionTabularView.cs
r3449 r3546 100 100 101 101 private void dataGridView_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { 102 if (e.RowIndex > 0) { 103 IContentView view = MainFormManager.CreateDefaultView(Content.ElementAt(e.RowIndex)); 102 if (e.RowIndex >= 0) { 103 IRun run = Content.ElementAt(virtualRowIndizes[e.RowIndex]); 104 IContentView view = MainFormManager.CreateDefaultView(run); 104 105 if (view != null) { 105 106 view.ReadOnly = this.ReadOnly;
Note: See TracChangeset
for help on using the changeset viewer.