Ejemplo n.º 1
0
        public SetupWindow()
        {
            InitializeComponent();

            Controller = new AdasController();
            viewModel_ = new SetupViewModel();
            DataContext = viewModel_;

            GoToStage(Stage.SetupSource);
        }
Ejemplo n.º 2
0
        public MainWindow(AdasController controller)
        {
            Controller = controller;
            InitializeComponent();

            _viewModel = new MainViewModel();

            DataContext = _viewModel;
            _dispatcherTimer = new DispatcherTimer(DispatcherPriority.ApplicationIdle);
            _dispatcherTimer.Tick += ProcessImages;
        }
Ejemplo n.º 3
0
        public CalibrationWindow(AdasController controller)
        {
            InitializeComponent();

            Controller = controller;

            _viewModel = Model.Calibrated
                ? new CalibrationViewModel(Model.CalibrationModel.CalibrationResult.Settings)
                : new CalibrationViewModel();
            _viewModel.CalibrationResult = Model.CalibrationModel.CalibrationResult;

            if (Model.Mode == SourceMode.Camera)
            {
                InitCameraMode();
            }
            else
            {
                InitImageMode();
            }

            DataContext = _viewModel;
        }
Ejemplo n.º 4
0
        public CalibrationWindow(AdasController controller)
        {
            InitializeComponent();

            Controller = controller;

            _viewModel = Model.Calibrated
                ? new CalibrationViewModel(Model.CalibrationModel.CalibrationResult.Settings)
                : new CalibrationViewModel();
            _viewModel.CalibrationResult = Model.CalibrationModel.CalibrationResult;

            if (Model.Mode == SourceMode.Camera)
            {
                InitCameraMode();
            }
            else
            {
                InitImageMode();
            }

            DataContext = _viewModel;
        }