private void VideoAndPicture_FormClosing(object sender, FormClosingEventArgs e) { videoSourcePlayer1.SignalToStop(); videoSourcePlayer1.WaitForStop(); action1(); //writer.Dispose(); _danli = null; }
public static VideoAndPicture CreateForm(string path, videoaction action2) { action1 = action2; Path = path; if (_danli == null) { _danli = new VideoAndPicture(); } return(_danli); }