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); } }
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); } }
public AlbumSearch(MainWindow.Data data) { InitializeComponent(); app = new PrettyGood.LastFm.LastFm(data.ApiKey); }