示例#1
0
 public void Dispose()
 {
     FilesSavingQueue.FlushSynchroniously();
     if (calibration_window != null)
     {
         calibration_window.Close();
         calibration_window = null;
     }
 }
示例#2
0
        private static void Shutdown(object sender, EventArgs e)
        {
            input_manager.Stop();
            eye_tracking_mouse.StopControlling();
            Helpers.tray_icon.Visible = false;

            FilesSavingQueue.FlushSynchroniously();
            System.Windows.Application.Current.Shutdown();
        }
示例#3
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;

                FilesSavingQueue.FlushSynchroniously();
                System.Windows.Application.Current.Shutdown();
            }
        }