Exemplo n.º 1
0
        private void GetItemValuesFromEVECentral()
        {
            List <string> uris = AssembleURIs();

            Display("Retrieving EVE-C prices.");
            int requests = uris.Count;

            EVECentralInterfacer[] w = new EVECentralInterfacer[requests];

            try
            {
                for (int i = 0; i < requests; ++i)
                {
                    w[i] = new EVECentralInterfacer();
                    w[i].DownloadStringCompleted += w_EVECentralResponse;
                    w[i].DownloadStringAsync(new Uri(uris[i]));
                }
            }
            catch (Exception) { }

            while (_evecentralresponses.Count != requests)
            {
                //Console.Clear();
                //Console.WriteLine("Retrieving EVE-C prices {0} of {1}.", _evecentralresponses.Count, requests);
                Thread.Sleep(1);
            }

            ProcessEVECentralMarketStatResponses();
        }
        private void GetItemValuesFromEVECentral()
        {
            List<string> uris = AssembleURIs();
            Display("Retrieving EVE-C prices.");
            int requests = uris.Count;
            EVECentralInterfacer[] w = new EVECentralInterfacer[requests];

            try
            {
                for (int i = 0; i < requests; ++i)
                {
                    w[i] = new EVECentralInterfacer();
                    w[i].DownloadStringCompleted += w_EVECentralResponse;
                    w[i].DownloadStringAsync(new Uri(uris[i]));
                }
            }
            catch (Exception) { }

            while (_evecentralresponses.Count != requests)
            {
                //Console.Clear();
                //Console.WriteLine("Retrieving EVE-C prices {0} of {1}.", _evecentralresponses.Count, requests);
                Thread.Sleep(1);
            }

            ProcessEVECentralMarketStatResponses();
        }