private void devMan_DeviceAdded(object sender, NDeviceManagerDeviceEventArgs e)
 {
     if (cbCameras.InvokeRequired)
     {
         cbCameras.Invoke(new OnDeviceChange(devMan_DeviceAdded), sender, e);
     }
     else
     {
         ListAllDevices();
     }
 }
 private void devMan_DeviceRemoved(object sender, NDeviceManagerDeviceEventArgs e)
 {
     if (cbCameras.InvokeRequired)
     {
         cbCameras.Invoke(new OnDeviceChange(devMan_DeviceRemoved), sender, e);
     }
     else
     {
         cbCameras.Items.Remove(e.Device);
         if (_camera == e.Device)
         {
             _camera = null;
             cbFormats.Items.Clear();
         }
     }
 }
 private void devMan_DeviceRemoved(object sender, NDeviceManagerDeviceEventArgs e)
 {
     if (cbCameras.InvokeRequired)
     {
         cbCameras.Invoke(new OnDeviceChange(devMan_DeviceRemoved), sender, e);
     }
     else
     {
         cbCameras.Items.Remove(e.Device);
         if (_camera == e.Device)
         {
             _camera = null;
             cbFormats.Items.Clear();
         }
     }
 }
 private void devMan_DeviceAdded(object sender, NDeviceManagerDeviceEventArgs e)
 {
     if (cbCameras.InvokeRequired)
     {
         cbCameras.Invoke(new OnDeviceChange(devMan_DeviceAdded), sender, e);
     }
     else
     {
         ListAllDevices();
     }
 }