Пример #1
0
 private void HandleBidAsk(BidAsk bidAsk)
 {
     Dispatcher.Invoke(new Action(delegate()
     {
         controls[bidAsk.Symbol].SetBidAsk(bidAsk.Bid, bidAsk.Ask);
     }));
 }
Пример #2
0
        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);
        }