From db8ae67c1f7a4047f35cc40af9cb0a8af2c43a40 Mon Sep 17 00:00:00 2001 From: "gu.martinm@gmail.com" Date: Sat, 16 Aug 2014 09:25:41 +0200 Subject: [PATCH] WeatherInformation WP8: remove WasThereRemoteError If there was an error we will have exception, we do not need that property. --- .../WeatherInformation/WeatherInformation/MainPage.xaml.cs | 9 --------- .../WeatherInformation/Model/Services/ServiceParser.cs | 1 - .../WeatherInformation/WeatherInformation/Model/WeatherData.cs | 6 ------ .../WeatherInformation/SelectedDatePage.xaml.cs | 9 --------- 4 files changed, 25 deletions(-) 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); } } -- 2.1.4