//TA.TickerheadConverters.ConvertFromDB2TT(TickerHead) void pls_Update(object sender, ProductLookupSubscriptionEventArgs e) { if (e.Error == null) { Console.WriteLine("Product Found: {0}", e.Product.Name); InstrumentCatalogSubscription ics = new InstrumentCatalogSubscription(e.Product, Dispatcher.Current); ics.InstrumentsUpdated += new EventHandler <InstrumentCatalogUpdatedEventArgs>(ics_InstrumentsUpdated); ics.Start(); } else { Console.WriteLine(e.Error.Message); } }
void pls_Update(object sender, ProductLookupSubscriptionEventArgs e) { if (e.Error == null) { Console.WriteLine("Product Found: {0}", e.Product.Name); InstrumentCatalogSubscription ics = new InstrumentCatalogSubscription(e.Product, Dispatcher.Current); ics.InstrumentsUpdated += new EventHandler<InstrumentCatalogUpdatedEventArgs>(ics_InstrumentsUpdated); ics.Start(); } else { Console.WriteLine(e.Error.Message); } }
public void Subscribe2InstrumentCatalogs(object sender, ProductLookupSubscriptionEventArgs e) { if (e.Error == null) { Console.WriteLine("Product Found: {0}", e.Product.Name); InstrumentCatalogSubscription ICS = new InstrumentCatalogSubscription(e.Product, Dispatcher.Current); IcsDictionary.Add(e.Product.Key, ICS); ICS.InstrumentsUpdated += new EventHandler <InstrumentCatalogUpdatedEventArgs>(ICUEventHandler); ICS.Start(); } else { Console.WriteLine(e.Error.Message); } }
public void Subscribe2InstrumentCatalogs(object sender, ProductLookupSubscriptionEventArgs e) { if (e.Error == null) { Console.WriteLine("Product Found: {0}", e.Product.Name); InstrumentCatalogSubscription ICS = new InstrumentCatalogSubscription(e.Product, Dispatcher.Current); IcsDictionary.Add(e.Product.Key, ICS); ICS.InstrumentsUpdated += new EventHandler<InstrumentCatalogUpdatedEventArgs>(ICUEventHandler); ICS.Start(); } else { Console.WriteLine(e.Error.Message); } }