public WeatherStats()
 {
     AreNotificationsEnabled = true;
     SelectedCity = new SearchApiResultItem()
     {
         AreaName = "San Jose",
         Country = "Costa Rica",
         Latitude = 9.933,
         Longitude = -84.083,
         Region = "San Jose",
         WeatherUrl = 0.0,
     };
 }
 private void OnSelectCityCommandInvoked(SearchApiResultItem selectedSearchApiResultItem)
 {
     if (selectedSearchApiResultItem == null)
     {
         return;
     }
     SearchResults.Clear();
     var weatherStats = IsoStoreHelper.LoadFromIsoStore<WeatherStats>(WeatherStats.WeatherSettingsKeyName, (k) => new WeatherStats());
     weatherStats.SelectedCity = selectedSearchApiResultItem;
     IsoStoreHelper.SaveToIsoStore(WeatherStats.WeatherSettingsKeyName, weatherStats);
     CityName = string.Concat(weatherStats.SelectedCity.AreaName, ", ", weatherStats.SelectedCity.Country);
     var phoneApplicationFrame = (App.Current.RootVisual as Microsoft.Phone.Controls.PhoneApplicationFrame);
     if (phoneApplicationFrame != null && phoneApplicationFrame.CanGoBack)
     {
         phoneApplicationFrame.GoBack();
     }
 }