예제 #1
0
        public StatusBarViewModel(IMachineSimulator machineSimulator)
        {
            _machineSimulator = machineSimulator;
            _machineSimulator.LoadingProgressChanged += MachineSimulatorProgressChanged;

            StatusBarVisibility = Visibility.Collapsed;
        }
예제 #2
0
        public TopMenuViewModel(IAppCommands appCommands, IMachineSimulator machineSimulator, IDialogService dialogService)
        {
            _appCommands      = appCommands;
            _machineSimulator = machineSimulator;
            _dialogService    = dialogService;

            CreateCommands();
        }
예제 #3
0
        public Plot3dViewModel(IMachineSimulator machineSimulator, ILoggerFacade logger)
        {
            OpenByDropCommand = new DelegateCommand <DragEventArgs>(OpenByDropCommandExecute);

            _machineSimulator = machineSimulator;
            _logger           = logger;

            PlotCamera = new PerspectiveCamera();

            _machineSimulator.FrameChanged += MachineFrameChanged;

            _machineSimulator.NewFileOpened += ClearPlotModel;
            _machineSimulator.ProgramOpened += OnProgramOpened;
        }