Exemple #1
0
 private void pb_listen_Click(object sender, EventArgs e)
 {
     if (!musicList.GetIsMyPlayList())
     {
         JArray datas = musicList.GetSelectedItem();
         for (var i = 0; i < datas.Count; i++)
         {
             player.AddVideo((JObject)datas[i]);
         }
         musicList.DeselectAll();
     }
     else
     {
         int index = musicList.GetCurrentSelectedMusicIndex();
         player.PlayVideoByIndex(index);
     }
 }