コード例 #1
0
        public void CreateAllTripMapsMapQuest()
        {
            if (String.IsNullOrEmpty(Settings.Default.MapQuestKey))
            {
                Assert.Inconclusive("No Settings for MapQuestKey");
            }

            ApplicationSettings.Default.Reload();
            var k = ApplicationSettings.Default.MapQuestKey;

            ApplicationSettings.Default.PropertyValues["MapQuestKey"].PropertyValue = Settings.Default.MapQuestKey;

            k = ApplicationSettings.Default.MapQuestKey;

            StaticMapService.CreateAllTripMaps(StaticMapProvider.MapMode.Dark);

            var inst = StaticMapService.GetSingleton();

            Thread threadStaticMapService = new Thread(() =>
            {
                StaticMapService.GetSingleton().Run();
            })
            {
                Name = "StaticMapServiceThread"
            };

            threadStaticMapService.Start();

            while (inst.GetQueueLength() > 0)
            {
                System.Threading.Thread.Sleep(500);
            }
        }
コード例 #2
0
        public void CreateAllTripMaps()
        {
            ApplicationSettings.Default.Reload();
            var k = ApplicationSettings.Default.MapQuestKey;

            ApplicationSettings.Default.PropertyValues["MapQuestKey"].PropertyValue = "";
            k = ApplicationSettings.Default.MapQuestKey;



            StaticMapService.CreateAllTripMaps(StaticMapProvider.MapMode.Dark);

            var inst = StaticMapService.GetSingleton();

            Thread threadStaticMapService = new Thread(() =>
            {
                StaticMapService.GetSingleton().Run();
            })
            {
                Name = "StaticMapServiceThread"
            };

            threadStaticMapService.Start();

            while (inst.GetQueueLength() > 0)
            {
                System.Threading.Thread.Sleep(500);
            }
        }
コード例 #3
0
        public void CreateAllTripMaps()
        {
            StaticMapService.CreateAllTripMaps(StaticMapProvider.MapMode.Dark);

            var inst = StaticMapService.GetSingleton();

            Thread threadStaticMapService = new Thread(() =>
            {
                StaticMapService.GetSingleton().Run();
            })
            {
                Name = "StaticMapServiceThread"
            };

            threadStaticMapService.Start();

            while (inst.GetQueueLength() > 0)
            {
                System.Threading.Thread.Sleep(500);
            }
        }