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(); }
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]); }
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]); }
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]); }
private void HighLightCell(InstrumentDataRecord record, IBGridColumn col, ICell cell) { record.PreviousHighlights.Add(new KeyValuePair <ICell, IView>(cell, cell.View)); cell.View = _highlightView; }
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]); }
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]); }
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]); }
private void HighLightCell(InstrumentDataRecord record, IBGridColumn col, ICell cell) { record.PreviousHighlights.Add(new KeyValuePair<ICell, IView>(cell, cell.View)); cell.View = _highlightView; }