コード例 #1
0
        /// <summary><c>Artists</c> the releases search callback.</summary>
        /// <param name="sender">The <paramref name="sender"/>.</param>
        /// <param name="args">The <see cref="ArtistReleasesSearchCompletedEventArgs"/> instance containing the event data.</param>
        private void ArtistReleasesSearchCallback(object sender, ArtistReleasesSearchCompletedEventArgs args)
        {
            if (args.Error == null)
            {
                var objConverter = new MusicSearchObjectConverter();
                Releases = objConverter.Convert(args.ArtistsReleasesSearchResults);
            }

            _eventAggregator.GetEvent <AppStatusMessageEvent>().Publish("Ready...");
        }
コード例 #2
0
        /// <summary><c>Artists</c> the search callback.</summary>
        /// <param name="sender">The <paramref name="sender"/>.</param>
        /// <param name="args">The <see cref="ArtistSearchCompletedEventArgs"/> instance containing the event data.</param>
        private void ArtistSearchCallback(object sender, ArtistSearchCompletedEventArgs args)
        {
            if (args.Error == null)
            {
                var objConverter = new MusicSearchObjectConverter();
                Artists = objConverter.Convert(args.ArtistsSearchResults);
            }

            _canClearArtistInfo = true;
            _searchForArtistCommand.RaiseCanExecuteChanged();
            _clearArtistInfoCommand.RaiseCanExecuteChanged();

            _eventAggregator.GetEvent <AppStatusMessageEvent>().Publish("Ready...");
        }
コード例 #3
0
        /// <summary><c>Artists</c> the search callback.</summary>
        /// <param name="sender">The <paramref name="sender"/>.</param>
        /// <param name="args">The <see cref="ArtistSearchCompletedEventArgs"/> instance containing the event data.</param>
        private void ArtistSearchCallback(object sender, ArtistSearchCompletedEventArgs args)
        {
            if (args.Error == null)
            {
                var objConverter = new MusicSearchObjectConverter();
                Artists = objConverter.Convert(args.ArtistsSearchResults);
            }

            _canClearArtistInfo = true;
            _searchForArtistCommand.RaiseCanExecuteChanged();
            _clearArtistInfoCommand.RaiseCanExecuteChanged();

            _eventAggregator.GetEvent<AppStatusMessageEvent>().Publish("Ready...");
        }
コード例 #4
0
        /// <summary><c>Artists</c> the releases search callback.</summary>
        /// <param name="sender">The <paramref name="sender"/>.</param>
        /// <param name="args">The <see cref="ArtistReleasesSearchCompletedEventArgs"/> instance containing the event data.</param>
        private void ArtistReleasesSearchCallback(object sender, ArtistReleasesSearchCompletedEventArgs args)
        {
            if (args.Error == null)
            {
                var objConverter = new MusicSearchObjectConverter();
                Releases = objConverter.Convert(args.ArtistsReleasesSearchResults);
            }

            _eventAggregator.GetEvent<AppStatusMessageEvent>().Publish("Ready...");
        }