Пример #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();
            }
        }
Пример #4
0
 public void OnCalibrate()
 {
     calibrations++;
     FilesSavingQueue.Save(Filepath, GetDeepCopy);
 }
Пример #5
0
 public void OnClick()
 {
     clicks++;
     FilesSavingQueue.Save(Filepath, GetDeepCopy);
 }
Пример #6
0
 private void OnShiftsChanged()
 {
     FilesSavingQueue.Save(DefaultPath, GetSerializedContent);
     calibration_window?.UpdateCorrections(Corrections);
 }