Changeset 3546


Ignore:
Timestamp:
04/27/10 18:51:23 (12 years ago)
Author:
mkommend
Message:

corrected tabular view and bubble chart view (ticket #970)

Location:
trunk/sources
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs

    r3454 r3546  
    145145
    146146    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++) {
    148148        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]);
    150150        else
    151151          dataGridView.Rows[i].HeaderCell.Value = "Row " + (i + 1);
     
    290290      virtualRowIndizes = Sort(sortedColumnIndizes);
    291291      UpdateSortGlyph();
     292      UpdateRowHeaders();
    292293      dataGridView.Invalidate();
    293294    }
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionBubbleChartView.cs

    r3543 r3546  
    6363      this.isSelecting = false;
    6464
    65      
     65
    6666      this.chart.ChartAreas[0].CursorX.IsUserSelectionEnabled = true;
    6767      this.chart.ChartAreas[0].CursorY.IsUserSelectionEnabled = true;
     
    293293          view.Locked = this.Locked;
    294294          view.Show();
    295         } else {
     295        } else
    296296          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);
    300299      }
    301300    }
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionTabularView.cs

    r3449 r3546  
    100100
    101101    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);
    104105        if (view != null) {
    105106          view.ReadOnly = this.ReadOnly;
Note: See TracChangeset for help on using the changeset viewer.