예제 #1
0
 private void OnNewHistoricalTrade(object sender, HistoricalTradeEventArgs e)
 {
     if (e.RequestId == this.request.RequestId)
         this.data.Add(e.Trade);
 }
예제 #2
0
 private void provider_NewHistoricalTrade(object sender, HistoricalTradeEventArgs args)
 {
   DownloadViewItem downloadViewItem = (DownloadViewItem) null;
   if (!this.items.TryGetValue(((HistoricalDataEventArgs) args).RequestId, out downloadViewItem))
     return;
   downloadViewItem.Instrument.Add(args.Trade);
   this.UpdateDownloadItem(downloadViewItem, (HistoricalDataEventArgs) args);
 }