private void HandleBidAsk(BidAsk bidAsk) { Dispatcher.Invoke(new Action(delegate() { controls[bidAsk.Symbol].SetBidAsk(bidAsk.Bid, bidAsk.Ask); })); }
private List <BidAsk> GetBidAsks() { var bidAsks = new List <BidAsk>(); using (var reader = new StringReader(Properties.Resources.Ticks20120102)) { string line; while ((line = reader.ReadLine()) != null) { bidAsks.Add(BidAsk.Parse(line)); } } return(bidAsks); }