If there was an error we will have exception, we do not need that
property.
if (weatherData != null)
{
- if (weatherData.WasThereRemoteError)
- {
- MessageBox.Show(
- AppResources.NoticeThereIsNotCurrentLocation,
- AppResources.UnavailableAutomaticCurrentLocationMessageBox,
- MessageBoxButton.OK);
- return;
- }
-
_mainViewModel.LoadData(weatherData);
}
}
JSONRemoteForecast = JSONRemoteForecastWeather,
RemoteCurrent = GetCurrentWeather(JSONRemoteCurrentWeather),
RemoteForecast = GetForecastWeather(JSONRemoteForecastWeather),
- WasThereRemoteError = false
};
}
}
set;
}
- public bool WasThereRemoteError
- {
- get;
- set;
- }
-
public string City { get; set;}
public string Country { get; set; }
if (weatherData != null)
{
- if (weatherData.WasThereRemoteError)
- {
- MessageBox.Show(
- AppResources.NoticeThereIsNotCurrentLocation,
- AppResources.UnavailableAutomaticCurrentLocationMessageBox,
- MessageBoxButton.OK);
- return;
- }
-
_selectedDateViewModel.LoadData(weatherData);
}
}