public StatusBarViewModel(IMachineSimulator machineSimulator) { _machineSimulator = machineSimulator; _machineSimulator.LoadingProgressChanged += MachineSimulatorProgressChanged; StatusBarVisibility = Visibility.Collapsed; }
public TopMenuViewModel(IAppCommands appCommands, IMachineSimulator machineSimulator, IDialogService dialogService) { _appCommands = appCommands; _machineSimulator = machineSimulator; _dialogService = dialogService; CreateCommands(); }
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; }