Beispiel #1
0
        void getData()
        {
#if DEBUG
            Task.Run(async() => await TestDataProvider.InitTestDataAsync(this));
#else
            Task.Run(async() => await WuClient.Shared.GetLocationsAsync(Settings.LocationsJson));
#endif
        }
Beispiel #2
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
        }
Beispiel #3
0
 void getData() => TestDataProvider.InitTestDataAsync(this);
Beispiel #4
0
 void getData() => Task.Run(async() => await TestDataProvider.InitTestDataAsync(this));