private async Task GetResourceValue() { try { NumberFormatInfo nfi = new NumberFormatInfo(); nfi.NumberDecimalSeparator = "."; App.Weather = await GetWeatherCore.GetCoordinate(App.Latitude.ToString("0.0000", nfi), App.Longitude.ToString("0.0000", nfi)); } catch (Exception error) { Debug.WriteLine("Something was wrong with 'GetResourceValue'" + error.Message); } }
private async void GetLocalValues() { App.Weather = null; App.Weather = await GetWeatherCore.GetStoredWeather(FILENAME, FOLDER); }