public void FormWebCamOpen() { if (FrmWebCam == null) { FrmWebCam = new FormWebCamm(); FrmWebCam.Init(this); FrmWebCam.FormClosing += FrmWebCamClose; } FrmWebCam.Show(); FrmWebCam.BringToFront(); }
private void FrmWebCamClose(object sender, System.Windows.Forms.FormClosingEventArgs e) { //FrmWebCam.WebcamStop(); FrmWebCam = null; }