private void StopCameraProcessing()
{
try
{
if ((Detector != null) && (Detector.isRunning()))
{
Detector.stop();
Detector.Dispose();
Detector = null;
}
// Enable/Disable buttons on start
btnStartCamera.IsEnabled = true;
btnResetCamera.IsEnabled =
btnAppShot.IsEnabled =
btnStopCamera.IsEnabled = false;
}
catch (Exception ex)
{
String message = String.IsNullOrEmpty(ex.Message) ? "AffdexMe error encountered." : ex.Message;
ShowExceptionAndShutDown(message);
}
}