コード例 #1
0
        //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);
            }
        }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
        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);
            }
        }
コード例 #4
0
        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);
            }
        }