in src/CognitiveKioskUWP/MainPage.xaml.cs [164:183]
private void TimerFace_Tick(object sender, object e)
{
try
{
// Check for shutoff time
if (DateTime.Now.Subtract(faceLastDate).TotalSeconds > 30)
{
DisableUI();
isFaceFound = false;
timerFace.Stop();
timerTakePicture.Stop();
}
}
catch (Exception)
{
isFaceFound = false;
}
}