日期:2014-05-17 浏览次数:20773 次
namespace MyShipin
{
public partial class Form1 : Form
{
public int nPort = 0;
public static IntPtr sFileName;
public Form1()
{
InitializeComponent();
}
int numOfMusic;
string[] fileList = new string[10000];
public void AddFile(string path)
{
if (numOfMusic < 10000)
{
numOfMusic += 1;
fileList[numOfMusic] = path;
}
else
{
MessageBox.Show("不能添加文件其中有影魔出现!", "播放列表已满影魔已经出现");
}
}
public string PlayFileName;
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
openFileDialog1.Filter = "mp4文件|*.mp4|所有文件|*.*";//设置文件类型
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
int i;