public void ProcessPriceChange(MarketDataHandler.PriceChangeArgs priceChange) { DataGridViewRow row; if (symbol2dataGridViewRow.ContainsKey(priceChange.Symbol)) { row = symbol2dataGridViewRow[priceChange.Symbol]; } else { int index = dataGridView.Rows.Add(); row = dataGridView.Rows[index]; symbol2dataGridViewRow.Add(priceChange.Symbol, row); row.Cells[symbolColumn.Index].Value = priceChange.Symbol; } row.Cells[bidColumn.Index].Value = priceChange.Bid; row.Cells[offerColumn.Index].Value = priceChange.Offer; row.Cells[bidSizeColumn.Index].Value = priceChange.BidSize; row.Cells[offerSizeColumn.Index].Value = priceChange.OfferSize; }
void ProcessPriceChange(MarketDataHandler.PriceChangeArgs priceChange) { marketDataView.ProcessPriceChange(priceChange); }
void marketDataHandler_PriceChange(object sender, MarketDataHandler.PriceChangeArgs args) { BeginInvoke(new ProcessPriceChangeDelegate(ProcessPriceChange), args); }