示例#1
0
        public TreeBasedTallyService(ICruiseDialogService dialogService, ITallyDataservice tallyDataservice, ISampleSelectorDataService sampleSelectorDataservice)
        {
            TallyDataservice          = tallyDataservice ?? throw new ArgumentNullException(nameof(TallyDataservice));
            SampleSelectorDataservice = sampleSelectorDataservice ?? throw new ArgumentNullException(nameof(SampleSelectorDataservice));

            DialogService = dialogService ?? throw new ArgumentNullException(nameof(dialogService));
        }
示例#2
0
 public PlotTallyService(ICruiseDialogService dialogService, IPlotDatastore plotDataservice, ISampleSelectorDataService sampleSelectorDataservice)
 {
     PlotDataservice           = plotDataservice ?? throw new ArgumentNullException(nameof(plotDataservice));
     SampleSelectorDataservice = sampleSelectorDataservice ?? throw new ArgumentNullException(nameof(sampleSelectorDataservice));
     DialogService             = dialogService ?? throw new ArgumentNullException(nameof(dialogService));
 }
        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));
        }
示例#4
0
 public TreeErrorEditViewModel(IDataserviceProvider datastoreProvider, ICruiseDialogService dialogService)
 {
     Datastore     = datastoreProvider.GetDataservice <ICuttingUnitDatastore>();
     DialogService = dialogService ?? throw new ArgumentNullException(nameof(dialogService));
 }