Ejemplo n.º 1
0
        void getData()
        {
            if (LocationProvider == null)
            {
                LocationProvider = new LocationProvider(this);
            }

            Task.Run(async() => {
                var location = await LocationProvider.GetCurrentLocationCoordnatesAsync();

                await WuClient.Shared.GetLocations(Settings.LocationsJson, location);
            });
        }
Ejemplo n.º 2
0
        void getData()
        {
            if (LocationProvider == null)
            {
                LocationProvider = new LocationProvider(this);
            }

            System.Threading.Tasks.Task.Run(async() =>
            {
                var location = await LocationProvider.GetCurrentLocationCoordnatesAsync();

                await WuClient.Shared.GetLocations(location);
            });
        }
Ejemplo n.º 3
0
        void getData()
        {
#if DEBUG
            Task.Run(async() => await TestDataProvider.InitTestDataAsync(this));
#else
            if (LocationProvider == null)
            {
                LocationProvider = new LocationProvider(this);
            }

            Task.Run(async() => {
                var location = await LocationProvider.GetCurrentLocationCoordnatesAsync();

                await WuClient.Shared.GetLocations(Settings.LocationsJson, location);
            });
#endif
        }