From: gu.martinm@gmail.com Date: Sat, 16 Aug 2014 07:25:41 +0000 (+0200) Subject: WeatherInformation WP8: remove WasThereRemoteError X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=db8ae67c1f7a4047f35cc40af9cb0a8af2c43a40;p=CSharpForFun%2F.git WeatherInformation WP8: remove WasThereRemoteError If there was an error we will have exception, we do not need that property. --- diff --git a/WindowsPhone/WeatherInformation/WeatherInformation/MainPage.xaml.cs b/WindowsPhone/WeatherInformation/WeatherInformation/MainPage.xaml.cs index 897a531..3c83762 100644 --- a/WindowsPhone/WeatherInformation/WeatherInformation/MainPage.xaml.cs +++ b/WindowsPhone/WeatherInformation/WeatherInformation/MainPage.xaml.cs @@ -104,15 +104,6 @@ namespace WeatherInformation if (weatherData != null) { - if (weatherData.WasThereRemoteError) - { - MessageBox.Show( - AppResources.NoticeThereIsNotCurrentLocation, - AppResources.UnavailableAutomaticCurrentLocationMessageBox, - MessageBoxButton.OK); - return; - } - _mainViewModel.LoadData(weatherData); } } diff --git a/WindowsPhone/WeatherInformation/WeatherInformation/Model/Services/ServiceParser.cs b/WindowsPhone/WeatherInformation/WeatherInformation/Model/Services/ServiceParser.cs index dc5753e..b8543cb 100644 --- a/WindowsPhone/WeatherInformation/WeatherInformation/Model/Services/ServiceParser.cs +++ b/WindowsPhone/WeatherInformation/WeatherInformation/Model/Services/ServiceParser.cs @@ -45,7 +45,6 @@ namespace WeatherInformation.Model.Services JSONRemoteForecast = JSONRemoteForecastWeather, RemoteCurrent = GetCurrentWeather(JSONRemoteCurrentWeather), RemoteForecast = GetForecastWeather(JSONRemoteForecastWeather), - WasThereRemoteError = false }; } } diff --git a/WindowsPhone/WeatherInformation/WeatherInformation/Model/WeatherData.cs b/WindowsPhone/WeatherInformation/WeatherInformation/Model/WeatherData.cs index 78a3a91..4eef16a 100644 --- a/WindowsPhone/WeatherInformation/WeatherInformation/Model/WeatherData.cs +++ b/WindowsPhone/WeatherInformation/WeatherInformation/Model/WeatherData.cs @@ -33,12 +33,6 @@ namespace WeatherInformation.Model set; } - public bool WasThereRemoteError - { - get; - set; - } - public string City { get; set;} public string Country { get; set; } diff --git a/WindowsPhone/WeatherInformation/WeatherInformation/SelectedDatePage.xaml.cs b/WindowsPhone/WeatherInformation/WeatherInformation/SelectedDatePage.xaml.cs index 6ab9fbb..a20ba1d 100644 --- a/WindowsPhone/WeatherInformation/WeatherInformation/SelectedDatePage.xaml.cs +++ b/WindowsPhone/WeatherInformation/WeatherInformation/SelectedDatePage.xaml.cs @@ -52,15 +52,6 @@ namespace WeatherInformation if (weatherData != null) { - if (weatherData.WasThereRemoteError) - { - MessageBox.Show( - AppResources.NoticeThereIsNotCurrentLocation, - AppResources.UnavailableAutomaticCurrentLocationMessageBox, - MessageBoxButton.OK); - return; - } - _selectedDateViewModel.LoadData(weatherData); } }