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); })); } }
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); } }