Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/26/14 11:17:15 (11 years ago)
Author:
rstoll
Message:
  • improved performance, cell painting only if necessary
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/DataGridContentView.cs

    r10636 r10659  
    213213      if (e.State.HasFlag(DataGridViewElementStates.Selected)) return;
    214214      if (!e.PaintParts.HasFlag(DataGridViewPaintParts.Background)) return;
     215      if (HighlightedRowIndices == null && HightlightedCells == null) return;
    215216
    216217      int rowIndex = virtualRowIndices[e.RowIndex];
     
    218219      Color backColor = e.CellStyle.BackColor;
    219220
    220       if (HighlightedRowIndices != null && HighlightedRowIndices.Contains(rowIndex)
    221         || HightlightedCells != null && HightlightedCells.ContainsKey(e.ColumnIndex) && HightlightedCells[e.ColumnIndex].Contains(e.RowIndex)) {
     221      if (HighlightedRowIndices.Contains(rowIndex) || HightlightedCells.ContainsKey(e.ColumnIndex) && HightlightedCells[e.ColumnIndex].Contains(e.RowIndex)) {
    222222        backColor = Color.Pink;
    223223      }
Note: See TracChangeset for help on using the changeset viewer.