void CameraDevice_CameraDisconnected(object sender, DisconnectCameraEventArgs eventArgs)
 {
     MethodInvoker method = delegate
     {
         _liveViewTimer.Stop();
         Thread.Sleep(100);
         Close();
     };
     if (InvokeRequired)
         BeginInvoke(method);
     else
         method.Invoke();
 }
 private void cameraDevice_CameraDisconnected(object sender, DisconnectCameraEventArgs e)
 {
     if (e.StillImageDevice != null)
     {
         DisconnectCamera(e.StillImageDevice);
     }
     if (e.EosCamera != null)
     {
         DisconnectCamera(e.EosCamera);
     }
     OnCameraDisconnected((ICameraDevice) sender);
 }
 private void CameraDeviceCameraDisconnected(object sender, DisconnectCameraEventArgs eventArgs)
 {
     ServiceProvider.WindowsManager.ExecuteCommand(WindowsCmdConsts.LiveViewWnd_Hide, CameraDevice);
 }
 public void OnCameraDisconnected(object sender, DisconnectCameraEventArgs eventHandler)
 {
     if (CameraDisconnected != null)
     {
         CameraDisconnected(sender, eventHandler);
     }
 }