예제 #1
0
 void UpdateTitleBar()
 {
     ucTitlebar.StockName = DataService.GetSymbolName(Symbol);
     if (_quoteData != null && _quoteData.Count > 0)
     {
         ucTitlebar.Price      = _quoteData.Last().Close;
         ucTitlebar.Difference = _quoteData[Math.Max(_quoteData.Count - 1, 0)].Close - _quoteData[Math.Max(_quoteData.Count - 2, 0)].Close;
     }
 }