Beispiel #1
0
        private static void Shutdown(object sender, EventArgs e)
        {
            if (MessageBox.Show(
                    "This will prevent you from controlling mouse with your eyes.\nSure you want to quit?",
                    Helpers.application_name,
                    MessageBoxButton.YesNo) == MessageBoxResult.Yes)
            {
                input_manager.Stop();
                eye_tracking_mouse.StopControlling();
                Helpers.tray_icon.Visible = false;

                AsyncSaver.FlushSynchroniously();
                System.Windows.Application.Current.Shutdown();
            }
        }
 private static void OnCalibrationModeChanged(object sender, EventArgs e)
 {
     AsyncSaver.FlushSynchroniously();
     Instance.LoadFromFile();
 }