protected override void OnCruiseIDChanged(string value) { base.OnCruiseIDChanged(value); if (value != null) { SampleSelectorDataService = new SampleSelectorRepository(GetDataservice <ISampleInfoDataservice>()); } else { SampleSelectorDataService = null; } }
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)); }
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)); }