Ejemplo n.º 1
0
        public override void OnNavigatedTo(NavigatedToEventArgs e, Dictionary <string, object> viewModelState)
        {
            _genreKey = e.Parameter.ToString();
            Tracks    = new SimpleStateSupportCollection <VKSaverTrack>(LoadTracks);
            Tracks.Load();

            base.OnNavigatedTo(e, viewModelState);
        }
Ejemplo n.º 2
0
        public override void OnNavigatedTo(NavigatedToEventArgs e, Dictionary <string, object> viewModelState)
        {
            Track = JsonConvert.DeserializeObject <LastTrack>(e.Parameter.ToString(), _lastImageSetConverter);

            if (viewModelState.Count == 0)
            {
                VKTracks = new SimpleStateSupportCollection <Audio>(LoadVKTracks);
                VKTracks.Load();
            }
            else
            {
                VKTracks = JsonConvert.DeserializeObject <SimpleStateSupportCollection <Audio> >(
                    viewModelState[nameof(VKTracks)].ToString());
            }

            LoadArtistImage(Track.ArtistName);
            base.OnNavigatedTo(e, viewModelState);
        }