public PlaylistViewModel()
        {
            this.PropertyChanged += PlaylistViewModel_PropertyChanged;
            EventSystem.Subscribe <SpotifyAccessTokenMessage>(a => Task.Run(UpdateComboBox));
            EventSystem.Subscribe <MapDumpUpdated>(a => {
                MatchStatus  = "";
                UpdatingDump = false;
            });
            //Playlists = SpotifyAPI.GetPlaylists(true);

            //if (_playlists.Count > 0)
            //SelectedPlaylist = _playlists[0];
            //EventSystem.Publish<PlaylistsFromLocalMessage>();
            //Console.WriteLine("Local load sent");
        }
Exemplo n.º 2
0
 public HomeViewModel()
 {
     EventSystem.Subscribe <SpotifyAccessTokenMessage>(a => CurrentHomeState = HomeState.SignedIn);
     EventSystem.Subscribe <SpotifySignInMessage>(a => CurrentHomeState      = HomeState.SignInOptions);
     Load();
 }