private void webCameraForms_FormClosed(object sender, FormClosedEventArgs e) { _webCameraForms = null; }
private void webcameraToolStripMenuItem_Click(object sender, EventArgs e) { if (_webCameraForms == null) { _webCameraForms = new webCamera(); _webCameraForms.FormClosed += new FormClosedEventHandler(webCameraForms_FormClosed); _webCameraForms.Show(); } else { _webCameraForms.Show(); } }