private CreateCatalogueItemCommand(IDialogService dialogService, OpenCatalogueItemCommand openCatalogueItemCommand, Func <ItemKind, Task <CatalogueItemFacade> > createItemAsync = null, Func <ItemKind[]> getConfiguredKindsFunc = null) { if (dialogService == null) { throw new ArgumentNullException(nameof(dialogService)); } if (openCatalogueItemCommand == null) { throw new ArgumentNullException(nameof(openCatalogueItemCommand)); } DialogService = dialogService; OpenCatalogueItemCommand = openCatalogueItemCommand; CreateItemAsync = createItemAsync; GetConfiguredKindsFunc = getConfiguredKindsFunc; }
public CreateCatalogueItemCommand(IDialogService dialogService, OpenCatalogueItemCommand openCatalogueItemCommand) : this(dialogService, openCatalogueItemCommand, null) { }