Ejemplo n.º 1
0
        public void GoToStage(Stage stage)
        {
            stage_ = stage;
            _controlHolder.Children.Clear();
            switch (stage_)
            {
            case Stage.SetupSource:
                _controlHolder.Children.Add(new SetupSourceControl(this));
                break;

            case Stage.SetupCameraParameters:
                _controlHolder.Children.Add(new SetupCameraParametersControl(this));
                break;

            case Stage.SelectCalibration:
                _controlHolder.Children.Add(new SetupCalibrationControl(this));
                break;

            case Stage.Calibrate:
                var calibrateWindow = new CalibrationWindow(Controller);
                calibrateWindow.Show();
                Close();
                break;

            case Stage.Main:
                var mainwindow = new MainWindow(Controller);
                mainwindow.Show();
                Close();
                break;
            }
            SetMessage(string.Empty);
        }
        private void OpenCalibrationWindow(object obj)
        {
            MessageWriter.LogWrite("Opening calibration window...");
            CalibrationWindow cal = new CalibrationWindow();

            cal.Show();
        }
Ejemplo n.º 3
0
        public void showCalibration()
        {
            if (calibrationWindow == null)
            {
                calibrationWindow = new CalibrationWindow()
                {
                    Top = 0, Left = 0, WindowStartupLocation = WindowStartupLocation.Manual
                }
            }
            ;

            calibrationWindow.Width  = screenSource.getWidth();
            calibrationWindow.Height = screenSource.getHeight();

            calibrationWindow.Show();
            this.Owner = calibrationWindow;
            this.Focus();
        }
Ejemplo n.º 4
0
        private void ButtonCalibrate_Click(object sender, RoutedEventArgs e)
        {
            CalibrationWindow calibrationWindow = new CalibrationWindow(this.sensor);

            calibrationWindow.Show();
        }