Beispiel #1
0
        private void AddCity(object parameter)
        {
            if (SelectedResult == null)
            {
                return;
            }

            forecastService.AddFavoriteCity(SelectedResult);
            FavoredCities = new ObservableCollection <City>(forecastService.GetFavoriteCities());
            PropertyChanged(this, new PropertyChangedEventArgs("FavoredCities"));
        }