private void ChangeSong_Thread() { _currentArtist = GoEar.GetInstance().GetSimilarSong(_currentArtist.Name); mediaPlayer.URL = _currentArtist.UrlMp3; pictureBox1.Image = new Bitmap(new MemoryStream(new WebClient().DownloadData(_currentArtist.Image))); this.Invoke((MethodInvoker)delegate() { SetText(); }); }
private void ChangeSong(string artist) { _currentArtist = new Artist() { Name = artist }; ChangeSong(); }