Example #1
0
        private void UnHighlightCells(InstrumentDataRecord record)
        {
            foreach (var entry in record.PreviousHighlights)
            {
                entry.Key.View = entry.Value;
                entry.Key.Grid.InvalidateCell(entry.Key);
            }

            record.PreviousHighlights.Clear();
        }
Example #2
0
 private void SetValue(InstrumentDataRecord record, IBGridColumn col, double value)
 {
     if (value != Double.MaxValue)
     {
         record.Grid[record.Row, (int)col].Value = String.Format("{0:F2}", value);
     }
     else
     {
         record.Grid[record.Row, (int)col].Value = "";
     }
     HighLightCell(record, col, record.Grid[record.Row, (int)col]);
 }
Example #3
0
 private void SetValue(InstrumentDataRecord record, IBGridColumn col, int value)
 {
     record.Grid[record.Row, (int)col].Value = value;
     HighLightCell(record, col, record.Grid[record.Row, (int)col]);
 }
Example #4
0
 private void SetValue(InstrumentDataRecord record, IBGridColumn col, DateTime value)
 {
     record.Grid[record.Row, (int)col].Value = value.ToShortTimeString();
     HighLightCell(record, col, record.Grid[record.Row, (int)col]);
 }
Example #5
0
 private void HighLightCell(InstrumentDataRecord record, IBGridColumn col, ICell cell)
 {
     record.PreviousHighlights.Add(new KeyValuePair <ICell, IView>(cell, cell.View));
     cell.View = _highlightView;
 }
Example #6
0
 private void SetValue(InstrumentDataRecord record, IBGridColumn col, double value)
 {
   if (value != Double.MaxValue)
     record.Grid[record.Row, (int) col].Value = String.Format("{0:F2}", value);
   else
     record.Grid[record.Row, (int) col].Value = "";
   HighLightCell(record, col, record.Grid[record.Row, (int) col]);
 }
Example #7
0
 private void SetValue(InstrumentDataRecord record, IBGridColumn col, int value)
 {
   record.Grid[record.Row, (int) col].Value = value;
   HighLightCell(record, col, record.Grid[record.Row, (int) col]);
 }
Example #8
0
 private void SetValue(InstrumentDataRecord record, IBGridColumn col, DateTime value)
 {
   record.Grid[record.Row, (int) col].Value = value.ToShortTimeString();
   HighLightCell(record, col, record.Grid[record.Row, (int) col]);
 }
Example #9
0
 private void HighLightCell(InstrumentDataRecord record, IBGridColumn col, ICell cell)
 {
   record.PreviousHighlights.Add(new KeyValuePair<ICell, IView>(cell, cell.View));
   cell.View = _highlightView;
 }
Example #10
0
    private void UnHighlightCells(InstrumentDataRecord record)
    {
      foreach (var entry in record.PreviousHighlights)
      {
        entry.Key.View = entry.Value;
        entry.Key.Grid.InvalidateCell(entry.Key);
      }

      record.PreviousHighlights.Clear();
    }