in src/CognitiveKioskUWP/MainPage.xaml.cs [66:84]
protected async override void OnNavigatedTo(NavigationEventArgs e)
{
settings = Settings.SingletonInstance;
DisableUI();
timerFace = new DispatcherTimer();
timerFace.Tick += TimerFace_Tick;
timerFace.Interval = new TimeSpan(0, 0, 1, 0);
timerTakePicture = new DispatcherTimer();
timerTakePicture.Tick += TimerTakePicture_Tick;
timerTakePicture.Interval = new TimeSpan(0, 0, 0, 0, 60000/settings.FaceCVFPM);
timerFailsafe = new DispatcherTimer();
timerFailsafe.Tick += TimerFailsafe_Tick;
timerFailsafe.Interval = new TimeSpan(0, 0, 10, 0, 0);
timerFailsafe.Start();
await StartPreviewAsync();
InfoFadeOut.Begin();
Window.Current.Activated += Current_Activated;
}