Exemplo n.º 1
0
 private void OnOrderBookUpdated(OrderBookUpdated orderBookUpdated)
 {
     Invoke(new Action(() => {
         dateTime = DateTime.Now;
         LoadChart();
     }));
 }
Exemplo n.º 2
0
 private void OnOrderBookUpdated(OrderBookUpdated orderBookUpdated)
 {
     if (orderBookUpdated.Instrument == selectedInstrument.Name)
     {
         Invoke(new Action(() => {
             int selectedIndex = orderBookList.SelectedIndex;
             latestS5Candles   = null;
             LoadOrderBookList(orderBookUpdated.Instrument, orderBookUpdated.DateTime);
             if (selectedIndex == 0)
             {
                 orderBookList.SelectedIndex = 0;
             }
         }));
     }
 }