示例#1
0
 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;
 }
示例#2
0
 public CreateCatalogueItemCommand(IDialogService dialogService,
                                   OpenCatalogueItemCommand openCatalogueItemCommand) : this(dialogService, openCatalogueItemCommand, null)
 {
 }