public TreeCountEditViewModel(ICruiseNavigationService navigationService, IDataserviceProvider datastoreProvider, ICruiseDialogService dialogService) { if (datastoreProvider is null) { throw new ArgumentNullException(nameof(datastoreProvider)); } TallyDataservice = datastoreProvider.GetDataservice <ITallyDataservice>(); TallyPopulationDataservice = datastoreProvider.GetDataservice <ITallyPopulationDataservice>(); DialogService = dialogService ?? throw new ArgumentNullException(nameof(dialogService)); NavigationService = navigationService ?? throw new ArgumentNullException(nameof(navigationService)); }
public CuttingUnitListViewModel(IDataserviceProvider datastoreProvider, ICruiseNavigationService navigationService) { DatastoreProvider = datastoreProvider ?? throw new ArgumentNullException(nameof(datastoreProvider)); NavigationService = navigationService ?? throw new ArgumentNullException(nameof(navigationService)); }