private void OnPlayItem(PlaylistItemViewModel obj)
 {
     _eventAggregator
     .GetEvent <OnMediaPlay <AllJoinedTable> >()
     .Publish(obj.Song);
     Log("Playing playlist item");
 }
 public void AddPlaylistItem(PlaylistItemViewModel playlistItemViewModel)
 {
     if (!this.PlayListItemViewModels.Any(x => x == playlistItemViewModel))
     {
         this.PlayListItemViewModels.Add(playlistItemViewModel);
     }
 }
 private void OnRemoveItem(PlaylistItemViewModel obj)
 {
     if (this.PlayListItemViewModels.Any(x => x == obj))
     {
         this.PlayListItemViewModels.Remove(obj);
         Log("Removed playlist item");
     }
 }
        /// <summary>
        /// Displays the <see cref="ViewNames.SongSelectedView"/>
        /// </summary>
        /// <param name="playlistItemViewModel"></param>
        private void OnShowSongInfo(PlaylistItemViewModel playlistItemViewModel)
        {
            var song = playlistItemViewModel.Song;

            try
            {
                Log($"Navigating to song from Playlists : {song.Id} - {song.Artist} - {song.Title}", Category.Debug);
                _regionManager.RequestNavigate(Regions.ContentRegion, ViewNames.SongSelectedView, NavigationHelper.CreateSongNavigation(song));
            }
            catch (Exception ex)
            {
                Log(ex.Message, Category.Exception);
            }
        }
 private void OnAddToQueue(PlaylistItemViewModel vm)
 {
     Log($"Adding to queue");
     _queuedSongDataProvider.Add(vm.Song);
 }