WeatherInformation WP8: remove WasThereRemoteError
authorgu.martinm@gmail.com <gu.martinm@gmail.com>
Sat, 16 Aug 2014 07:25:41 +0000 (09:25 +0200)
committergu.martinm@gmail.com <gu.martinm@gmail.com>
Sat, 16 Aug 2014 07:25:41 +0000 (09:25 +0200)
If there was an error we will have exception, we do not need that
property.

WindowsPhone/WeatherInformation/WeatherInformation/MainPage.xaml.cs
WindowsPhone/WeatherInformation/WeatherInformation/Model/Services/ServiceParser.cs
WindowsPhone/WeatherInformation/WeatherInformation/Model/WeatherData.cs
WindowsPhone/WeatherInformation/WeatherInformation/SelectedDatePage.xaml.cs

index 897a531..3c83762 100644 (file)
@@ -104,15 +104,6 @@ namespace WeatherInformation
 
             if (weatherData != null)
             {
-                if (weatherData.WasThereRemoteError)
-                {
-                    MessageBox.Show(
-                         AppResources.NoticeThereIsNotCurrentLocation,
-                         AppResources.UnavailableAutomaticCurrentLocationMessageBox,
-                         MessageBoxButton.OK);
-                    return;
-                }
-
                 _mainViewModel.LoadData(weatherData);
             }
         }
index dc5753e..b8543cb 100644 (file)
@@ -45,7 +45,6 @@ namespace WeatherInformation.Model.Services
                 JSONRemoteForecast = JSONRemoteForecastWeather,
                 RemoteCurrent = GetCurrentWeather(JSONRemoteCurrentWeather),
                 RemoteForecast = GetForecastWeather(JSONRemoteForecastWeather),
-                WasThereRemoteError = false
             };
         }
     }
index 78a3a91..4eef16a 100644 (file)
@@ -33,12 +33,6 @@ namespace WeatherInformation.Model
             set;
         }
 
-        public bool WasThereRemoteError
-        {
-            get;
-            set;
-        }
-
         public string City { get; set;}
 
         public string Country { get; set; }
index 6ab9fbb..a20ba1d 100644 (file)
@@ -52,15 +52,6 @@ namespace WeatherInformation
 
             if (weatherData != null)
             {
-                if (weatherData.WasThereRemoteError)
-                {
-                    MessageBox.Show(
-                         AppResources.NoticeThereIsNotCurrentLocation,
-                         AppResources.UnavailableAutomaticCurrentLocationMessageBox,
-                         MessageBoxButton.OK);
-                    return;
-                }
-
                 _selectedDateViewModel.LoadData(weatherData);
             }
         }