日期:2014-05-20 浏览次数:20806 次
private void tsbPlay_Click(object sender, EventArgs e)
{
pl.Song_url();
for (int i = 0; i < pl.path_url.Length; i++)
{
if (pl.path_url[i] != null)//有歌曲的时候才运行
{
path = KTVUtil.songPath + pl.path_url[i];
MessageBox.Show("即将播放的歌曲:" + pl.path_url[i]);
if (pl.path_url[i] != "没有此歌")
{
if (pl.path_url[i] != "")
{
this.Play.URL = path;
if (this.Play.playState == WMPLib.WMPPlayState.wmppsTransitioning)//判断是否为播放状态
{
this.pbPause.Visible = true;
}
}
}
}
}