Пример #1
0
 private void MarketDataUpdated(object sender, MarketDataUpdatedEventArgs e)
 {
     if (OnMarketDataUpdated != null)
         OnMarketDataUpdated(null, e);
 }
Пример #2
0
 private void MarketDataUpdated(object sender, MarketDataUpdatedEventArgs e)
 {
     try
     {
         if (marketViewContainer.InvokeRequired)
         {
             MarketDataUpdatedCallback d = MarketDataUpdated;
             Invoke(d, new[] {sender, e});
         }
         else
         {
             if (e != null)
             {
                 try
                 {
                     MasterEventController.InvokeMarketDataUpdate(this, new MarketDataUpdateEventArgs {SenderID = e.senderID, MarketData = e.market as Market });
                 }
                 catch (Exception ex)
                 {
                     BroadcastMessage(
                         "EXCEPTION: private void MarketDataUpdated(object sender, Lignite.Engine.Events.MarketDataUpdatedEventArgs e)\n" +
                         ex);
                 }
             }
         }
     }
     catch (Exception ex)
     {
         BroadcastMessage(
             "EXCEPTION: private void MarketDataUpdated(object sender, Lignite.Engine.Events.MarketDataUpdatedEventArgs e)\n" +
             ex);
     }
 }