我正在尝试推出一个我已经在特定视频之后开发的程序。但天气预报计划首先开始,视频开始播放。我该怎么办?
这是代码:
foreach (string fileName in checkedListBox1.CheckedItems)
{
if (fileName!="C:\\Users\\bahri.eker\\Desktop\\FINAL\\hava.wmv")
{
axWindowsMediaPlayer1.Ctlcontrols.playItem(axWindowsMediaPlayer1.currentMedia);
}
else
{
Process.Start("C:/Users/bahri.eker/Desktop/FINAL/weatherForeCast.exe").WaitForExit();
Thread.Sleep(1000);
}
axWindowsMediaPlayer1.Ctlcontrols.next();
}