private void btnNew_Click(object sender, EventArgs e) { frmEditCamera frmNewCamera = new frmEditCamera(null); if (frmNewCamera.ShowDialog(this) == DialogResult.OK) { m_SelectedCamera = frmNewCamera.Camera.Model; ReloadCameras(); } }
private void btnEditCamera_Click(object sender, EventArgs e) { VideoCamera camera = cbxSavedCameras.SelectedItem as VideoCamera; if (camera != null) { frmEditCamera frmNewCamera = new frmEditCamera(camera); if (frmNewCamera.ShowDialog(this) == DialogResult.OK) { m_SelectedCamera = frmNewCamera.Camera.Model; ReloadCameras(); } } }