private void btnKinescopeBegin_Click(object sender, EventArgs e) { //得到路径。例:d:\a.avi string myPath = this.txtPath.Text; if (myPath == "") { MessageBox.Show("必须填写路径!"); return; } else { wcam.kinescopePath = myPath; delegateKinescope myK = new delegateKinescope(wcam.Kinescope); Thread threadKinescope = new Thread(new ThreadStart(myK)); threadKinescope.Start(); this.btnKinescopeBegin.Enabled = false; this.btnKinescopeStop.Enabled = true; } }
private void btnKinescopeBegin_Click(object sender, System.EventArgs e) { //得到路径。例:d:/a.avi string myPath = this.txtPath.Text; if (myPath == "") { MessageBox.Show("必须填写路径!"); return; } else { wcam.KinescopePath = myPath; delegateKinescope myK = new delegateKinescope(wcam.Kinescope); Thread threadKinescope = new Thread(new ThreadStart(myK)); threadKinescope.Start(); this.btnKinescopeBegin.Enabled = false; this.btnKinescopeStop.Enabled = true; } }
public void starKinescope() { delegateKinescope myK = new delegateKinescope(wcam.Kinescope); }
public void starKinescope() { delegateKinescope myK = new delegateKinescope(wcam.Kinescope); }