Table of Contents

Class AddExistingProjectItemCommandHandler

Namespace
Loehnert.Lisrt.Scripting.Project.ProjectItem.Commands
Assembly
Loehnert.Lisrt.Scripting.dll

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

shell IShell

Gemini shell.

factories IFileProjectItemFactory[]

Project item factories.

Exceptions

ArgumentNullException

Thrown when shell or factories is null.

Methods

Run(Command)

Shows the AddNewProjectItemViewModel dialog for adding a new item by template.

public override Task Run(Command command)

Parameters

command Command

The executing command.

Returns

Task

The running task.

Update(Command)

Updates the command.

public override void Update(Command command)

Parameters

command Command

The executing command.