private void ExecutePlaySimilarArtist(SimilarArtistModel artist)
 {
     Radio.Play(new SimilarArtistsTrackStream(Radio, new[] { artist.Name })
     {
         Description = "Similar artists of " + _currentMainArtist
     });
 }
 private void ExecutePlayArtist(SimilarArtistModel artist)
 {
     Radio.Play(new SimilarArtistsTrackStream(Radio, new[] { artist.Name })
     {
         Description = artist.Name + " radio"
     });
 }
        private void SaveRecentSimilarArtist(SimilarArtistModel artistModel)
        {
            try
            {
                using (var session = DocumentStore.OpenSession())
                {
                    IRavenQueryable <SimilarArtistModel> artists = session.Query <SimilarArtistModel>();

                    if (artists.Any(a => a.Name.Equals(artistModel.Name, StringComparison.InvariantCultureIgnoreCase)))
                    {
                        return;
                    }

                    int count = artists.Count();

                    if (count > 50)
                    {
                        var tooMany        = count - 50;
                        var tooManyArtists = artists.Take(tooMany);

                        foreach (var artist in tooManyArtists)
                        {
                            session.Delete(artist);
                        }
                    }

                    session.Store(artistModel);
                    session.SaveChanges();
                }
            }
            catch (Exception e)
            {
                Logger.Log(e.Message, Category.Exception, Priority.Medium);
            }
        }
        private void ExecuteGoToArtist(SimilarArtistModel artist)
        {
            UriQuery query = new UriQuery();

            query.Add("artistName", artist.Name);
            RegionManager.RequestNavigate(AppRegions.ViewRegion, typeof(ArtistView).FullName + query);
        }
        private void ExecuteSearchForSimilarArtist(SimilarArtistModel artist)
        {
            UriQuery q = new UriQuery();

            q.Add(SearchBar.IsFromSearchBarParameter, "true");
            q.Add(SearchBar.ValueParameter, artist.Name);
            RegionManager.RequestNavigate(AppRegions.ViewRegion, typeof(MainStationView).FullName + q);
        }
        private void ExecuteQueueSimilarArtist(SimilarArtistModel artist)
        {
            Radio.Queue(new SimilarArtistsTrackStream(Radio, new[] { artist.Name })
            {
                Description = artist.Name + " radio"
            });

            ToastService.Show("Queued " + artist.Name);
        }
        private void ExecuteQueueSimilarArtist(SimilarArtistModel artist)
        {
            Radio.Queue(new SimilarArtistsTrackStream(Radio, new[] { artist.Name })
            {
                Description = "Similar artists of " + _currentMainArtist
            });

            ToastService.Show(new ToastData
            {
                Message = "Queued " + artist.Name,
                Icon    = AppIcons.Add
            });
        }
 private void ExecuteAddFavoriteArtist(SimilarArtistModel artist)
 {
 }