Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 void ProcessPriceChange(MarketDataHandler.PriceChangeArgs priceChange)
 {
     marketDataView.ProcessPriceChange(priceChange);
 }
Esempio n. 3
0
 void marketDataHandler_PriceChange(object sender, MarketDataHandler.PriceChangeArgs args)
 {
     BeginInvoke(new ProcessPriceChangeDelegate(ProcessPriceChange), args);
 }