コード例 #1
0
        private void OnQuoteUpdated(List <StockQuote> obj)
        {
            string code = Code.Text;

            if (code.Length != 6)
            {
                return;
            }
            var quote = obj.Find((q) => { return(String.Equals(q.SecurityId.Code, code)); });

            if (quote != null)
            {
                BeginInvoke(new MethodInvoker(() => { HandicapL2.Update(quote); }));
            }
        }
コード例 #2
0
        private void Code_TextChanged(object sender, EventArgs e)
        {
            var stock = StockFacade.GetStock(Code.Text);

            if (stock != null)
            {
                HandicapL2.Update(stock);
            }
            StockQuote quote = StockFacade.GetQuote(Code.Text);

            if (quote != null)
            {
                HandicapL2.Update(quote);
            }
        }