/// <summary> /// 双击选择播放列表项进行播放 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void lv_playlist_MouseDoubleClick(object sender, MouseEventArgs e) { ListViewHitTestInfo info = lv_playlist.HitTest(e.X, e.Y); if (info.Item != null) { gbxplayer1.Text = "视频1"; player1.playlist.stop(); player1.playlist.items.clear();
var videoitem = info.Item as ListViewItem; long geyeid = long.Parse(videoitem.SubItems[2].Text);
PlayVidoe(playlist[geyeid], playerList[0]); SetGroupBoxTitle(playerListIndex[0], playlist[geyeid].puName); }
}
|
请发表评论