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]); }
public GridCellInfoAttribute(IBGridColumn column) { Column = column; }
public GridCellInfoAttribute(IBGridColumn column, Type type) { Type = type; Column = column; }
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 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, 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 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, 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; }