日期:2014-05-18 浏览次数:21242 次
public partial class Form1 : Form { Media.VideoPlay video = new Media.VideoPlay(); Media.VideoPlay video2 = new Media.VideoPlay(); public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { this.openFileDialog1.ShowDialog(); video.VideoName = this.openFileDialog1.FileName; video.PlayVideo(video.VideoName, this.pictureBox1); } private void button2_Click(object sender, EventArgs e) { this.openFileDialog1.ShowDialog(); video2.VideoName = this.openFileDialog1.FileName; video2.PlayVideo(video2.VideoName, this.pictureBox2); } }