Beispiel #1
0
        public StratumTemplateListViewModel(ITemplateDataservice templateDataservice, ISaleDataservice saleDataservice, ISetupInfoDataservice setupDataservice, IDialogService dialogService)
        {
            TemplateDataservice = templateDataservice ?? throw new ArgumentNullException(nameof(templateDataservice));
            DialogService       = dialogService ?? throw new ArgumentNullException(nameof(dialogService));
            SaleDataservice     = saleDataservice ?? throw new ArgumentNullException(nameof(saleDataservice));
            SetupDataservice    = setupDataservice ?? throw new ArgumentNullException(nameof(setupDataservice));

            TreeFieldOptions = TemplateDataservice.GetTreeFields();
            Methods          = SetupDataservice.GetCruiseMethods().Select(x => x.Method).ToArray();
        }
        public StratumTemplateFieldsViewModel(ITemplateDataservice templateDataservice)
        {
            TemplateDataservice = templateDataservice ?? throw new ArgumentNullException(nameof(templateDataservice));

            TreeFields = TemplateDataservice.GetTreeFields();
        }
Beispiel #3
0
 public TreeAuditSelectorsViewModel(ITemplateDataservice templateDataservice, ISetupInfoDataservice setupDataservice)
 {
     TemplateDataservice = templateDataservice ?? throw new ArgumentNullException(nameof(templateDataservice));
     SetupDataservice    = setupDataservice ?? throw new ArgumentNullException(nameof(setupDataservice));
 }
 public StratumListViewModel(IStratumDataservice stratumDataservice, ITemplateDataservice templateDataservice, IFieldSetupDataservice fieldSetupDataservice)
 {
     StratumDataservice    = stratumDataservice ?? throw new ArgumentNullException(nameof(stratumDataservice));
     FieldSetupDataservice = fieldSetupDataservice ?? throw new ArgumentNullException(nameof(fieldSetupDataservice));
     TemplateDataservice   = templateDataservice ?? throw new ArgumentNullException(nameof(templateDataservice));
 }
        public StratumTemplateDetailsViewModel(ISetupInfoDataservice setupDataservice, ITemplateDataservice templateDataservice)
        {
            SetupDataservice    = setupDataservice ?? throw new ArgumentNullException(nameof(setupDataservice));
            TemplateDataservice = templateDataservice ?? throw new ArgumentNullException(nameof(templateDataservice));

            Methods = SetupDataservice.GetCruiseMethods().ToArray();
        }
Beispiel #6
0
 public TreeDefaultValueListViewModel(ITemplateDataservice templateDataservice, ISetupInfoDataservice setupInfoDataservice)
 {
     TemplateDataservice = templateDataservice ?? throw new ArgumentNullException(nameof(templateDataservice));
     SetupDataservice    = setupInfoDataservice ?? throw new ArgumentNullException(nameof(setupInfoDataservice));
 }
 public SpeciesListViewModel(ITemplateDataservice templateDataservice, ISetupInfoDataservice setupDataservice, IDialogService dialogService)
 {
     TemplateDataservice = templateDataservice ?? throw new ArgumentNullException(nameof(templateDataservice));
     SetupDataservice    = setupDataservice ?? throw new ArgumentNullException(nameof(setupDataservice));
     DialogService       = dialogService ?? throw new ArgumentNullException(nameof(dialogService));
 }
Beispiel #8
0
 public TreeAuditRuleListViewModel(ITemplateDataservice templateDataservice)
 {
     TemplateDataservice = templateDataservice ?? throw new ArgumentNullException(nameof(templateDataservice));
 }