コード例 #1
0
        private async void DoFavCommand()
        {
            if (this.CurrentStation != null)
            {
                IsFav = true;

                await _favStationService.Add(this.CurrentStation);

                //Messenger.Default.Send<string>("FavChanged", "FavChanged");
                SimpleIoc.Default.GetInstance <MainViewModel>().FavChangedReceived(string.Empty);
            }
        }
コード例 #2
0
        internal async void AddFavStation(Station station)
        {
            var favList = await _favStationService.Add(station);

            SetFavStations(favList);
        }