Example #1
0
 private void StopCamera()
 {
     try
     {
         button3.Text = "Start Webcam";
         if (_touch.CurrentCamera != null)
         {
             _touch.CurrentCamera.OnImageCaptured -= new EventHandler <CameraEventArgs>(OnImageCaptured);
             _touch.CurrentCamera.Dispose();
             _touch.RefreshCameraList();
             btnExit.Enabled = true;
         }
     }
     catch (Exception)
     {
         return;
     }
 }