public JobViewModel(IConnectionService connectionService, INavigationService navigationService, IDialogService dialogService, ISettingsService settingsService, IJobDataService jobService, IButoaneService butoaneService, IPauseService pauseService, IJobEfficiencyService jobEfficiency, IMasiniService masiniService, IUsersDataService usersDataService, IDeviceDataService deviceDataService, ICommessaTimService commessaService, IComenziService comenziService) : base(connectionService, navigationService, dialogService) { _jobEfficiency = jobEfficiency; _settingsService = settingsService; _jobService = jobService; _butoaneService = butoaneService; _pauseService = pauseService; _masiniService = masiniService; _usersService = usersDataService; _deviceDataService = deviceDataService; _commessaService = commessaService; _comenziService = comenziService; _workPermitOverQuantity = false; }
//private IDeviceDataService _deviceDataService; public ScannerViewModel(IConnectionService connectionService, INavigationService navigationService, IDialogService dialogService, IUsersDataService userService, ISettingsService settingsService, IAuthenticationService authenticationService, ICommessaTimService commessaTimService, IJobDataService jobDataService, IMasiniService machineService) : base(connectionService, navigationService, dialogService) { _machineService = machineService ?? throw new ArgumentNullException(nameof(machineService)); _jobDataService = jobDataService ?? throw new ArgumentNullException(nameof(jobDataService)); _settingsService = settingsService ?? throw new ArgumentNullException(nameof(settingsService)); _authenticationService = authenticationService ?? throw new ArgumentNullException(nameof(authenticationService)); _commessaTimService = commessaTimService ?? throw new ArgumentNullException(nameof(commessaTimService)); _userService = userService ?? throw new ArgumentNullException(nameof(userService)); // _deviceDataService = deviceDataService ?? throw new ArgumentNullException(nameof(deviceDataService)); }