private void LoadCameras() { if (this.InvokeRequired) { this.Invoke(new Action(this.LoadCameras)); } else { _cameraCollectionComboBox.Items.Clear(); foreach (var camera in _manager.GetCameras()) { camera.Shutdown += this.HandleCameraShutdown; camera.PictureTaken += this.HandlePictureUpdate; camera.LiveViewUpdate += this.HandlePictureUpdate; camera.LiveViewStopped += new EventHandler(camera_LiveViewStopped); camera.LiveViewPaused += new EventHandler(camera_LiveViewPaused); _cameraCollectionComboBox.Items.Add(camera); } if (_cameraCollectionComboBox.Items.Count > 0) { _cameraCollectionComboBox.SelectedIndex = 0; } } }