private void b_cam_settings_Click(object sender, EventArgs e) { if (CamSetForm == null) { CamSetForm = new Camera.CameraSettingsForm(camCtrl); CamSetForm.FormClosed += CameraSettingsForm_Closed; CamSetForm.Show(); } else { CamSetForm.Focus(); } }
private void b_close_Click(object sender, EventArgs e) { SetNewSpace(null); //pb_render.Image = null; mainCamera.Redraw(); cb_object.Items.Clear(); SetLoad(false); while (ObjSetForms.Count > 0) { ObjSetForms[0].Close(); } CamSetForm?.Close(); CamSetForm = null; }
public Provider(CameraSettingsForm camSetFormIn, Controller cameraCtrlIn) { camSetForm = camSetFormIn; cameraCtrl = cameraCtrlIn; camera = cameraCtrl.Camera; }
private void CameraSettingsForm_Closed(object sender, EventArgs e) { CamSetForm = null; }