Beispiel #1
0
        void priceTicker_PriceReceived(object sender, PriceReceivedArgs e)
        {
            if (this.InvokeRequired)
            {
                this.BeginInvoke((MethodInvoker) delegate
                {
                    priceTicker_PriceReceived(sender, e);
                });

                return;
            }

            updateUI(e.PriceTick);
        }
Beispiel #2
0
        void priceTicker_PriceReceived(object sender, PriceReceivedArgs e)
        {
            //if (this.InvokeRequired)
            //{
            //    this.BeginInvoke((MethodInvoker)delegate
            //    {
            //        priceTicker_PriceReceived(sender, e);
            //    });

            //    return;
            //}
            //if (e.PriceTick.MarketId == 99498)
            //    priceUC.SetUI(e.PriceTick);
            //else
            //    priceUC2.SetUI(e.PriceTick);
            //this.labelTest.Text = e.PriceTick.MarketId.ToString();
            //this.labelTest2.Text = e.PriceTick.Offer.ToString();
        }