Class AddExistingProjectItemCommandHandler
Command handler for the AddExistingProjectItemCommandDefinition.
[CommandHandler]
public class AddExistingProjectItemCommandHandler : ScriptCommandHandlerBase<AddExistingProjectItemCommandDefinition>, ICommandHandler<AddExistingProjectItemCommandDefinition>, ICommandHandler
  - Inheritance
 - 
      
      
      
      AddExistingProjectItemCommandHandler
 
- Implements
 
- Inherited Members
 
Constructors
AddExistingProjectItemCommandHandler(IShell, IFileProjectItemFactory[])
Initializes a new instance of the AddExistingProjectItemCommandHandler class.
[ImportingConstructor]
public AddExistingProjectItemCommandHandler(IShell shell, IFileProjectItemFactory[] factories)
  Parameters
shellIShellGemini shell.
factoriesIFileProjectItemFactory[]Project item factories.
Exceptions
- ArgumentNullException
 Thrown when
shellorfactoriesis null.
Methods
Run(Command)
Shows the Loehnert.Lisrt.Scripting.Project.ProjectItem.ViewModels.AddNewProjectItemViewModel dialog for adding a new item by template.
public override Task Run(Command command)
  Parameters
commandCommandThe executing command.
Returns
- Task
 The running task.
Update(Command)
Updates the command.
public override void Update(Command command)
  Parameters
commandCommandThe executing command.