//播放歌曲并记录历史 private void PlaySong(List <Song> list) { int index = listBox1.SelectedIndex; if (index < 0) { } else { Song s = list[index]; player.Ctlcontrols.currentItem = player.currentPlaylist.Item[index]; player.Ctlcontrols.play(); //记录播放历史 historyList.AddHistory(s); } }