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"); }
public HomeViewModel() { EventSystem.Subscribe <SpotifyAccessTokenMessage>(a => CurrentHomeState = HomeState.SignedIn); EventSystem.Subscribe <SpotifySignInMessage>(a => CurrentHomeState = HomeState.SignInOptions); Load(); }