private void btnWebcam_Click(object sender, EventArgs e) { if (webcamWindow == null || webcamWindow.IsDisposed) { webcamWindow = new CameraForm(viewModel); webcamWindow.Show(this); } }