Example #1
0
        private void OpenCalibrationParametersButton_Click(object sender, RoutedEventArgs e)
        {
            if (calibrator == null)
            {
                calibrator = new Calibrator()
                {
                    OnCalibrationFinished = this.OnCalibrationFinished
                }
            }
            ;

            CalibrationParametersWindow calibrationParametersWindow =
                new CalibrationParametersWindow(calibrator.calibrationParameters);

            calibrationParametersWindow.ShowDialog();
        }
Example #2
0
        private void CalibrateButton_Click(object sender, RoutedEventArgs e)
        {
            if (calibrator == null)
            {
                calibrator = new Calibrator()
                {
                    OnCalibrationFinished = this.OnCalibrationFinished
                }
            }
            ;

            CalibrateButton.IsEnabled = false;

            // TODO: Convert progress bar thing be not indeterminate
            progressBar.Visibility        = Visibility.Visible;
            progressBar.IsIndeterminate   = true;
            taskbarItemInfo.ProgressState = System.Windows.Shell.TaskbarItemProgressState.Indeterminate;
            calibrator.Calibrate(GetEyetrackingCalibrationPositions(calibrator.calibrationParameters));
        }