Ejemplo n.º 1
0
        public ArtistSearch(MainWindow.Data data)
        {
            InitializeComponent();

            app = new PrettyGood.LastFm.LastFm(data.ApiKey);

            foreach (var ci in PrettyGood.LastFm.LastFm.Languages)
            {
                dLanguage.Items.Add(ci);
            }
        }
Ejemplo n.º 2
0
        public ArtistInfo(PrettyGood.LastFm.LastFm app, FoundArtist artist)
        {
            InitializeComponent();

            var info = app.artist.getInfo(artist, null);

            dName.Text    = info.name;
            dMbid.Text    = info.mbid;
            dUrl.Text     = info.url;
            dTags.Text    = new StringList().AddRange(info.tags, x => x.name).Combine(new StringListCombiner(", ", " and "));
            dSimilar.Text = new StringList().AddRange(info.similar, x => x.name).Combine(new StringListCombiner(", ", " and "));
            dBio.Text     = "";
            if (string.IsNullOrEmpty(info.bio.summary) == false)
            {
                dBio.AppendText(info.bio.summary);
            }
        }
Ejemplo n.º 3
0
        public AlbumSearch(MainWindow.Data data)
        {
            InitializeComponent();

            app = new PrettyGood.LastFm.LastFm(data.ApiKey);
        }