Table of Contents

Class AddProjectItemCommandHandler

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

Command handler for the AddProjectItemCommandDefinition.

[CommandHandler]
public class AddProjectItemCommandHandler : ScriptCommandHandlerBase<AddProjectItemCommandDefinition>, ICommandHandler<AddProjectItemCommandDefinition>, ICommandHandler
Inheritance
AddProjectItemCommandHandler
Implements
Inherited Members

Constructors

AddProjectItemCommandHandler(IShell, IWindowManager, IProjectItemTemplateService)

Initializes a new instance of the AddProjectItemCommandHandler class.

[ImportingConstructor]
public AddProjectItemCommandHandler(IShell shell, IWindowManager windowManager, IProjectItemTemplateService templateService)

Parameters

shell IShell

Gemini shell.

windowManager IWindowManager

Window manger for showing the dialog.

templateService IProjectItemTemplateService

Template service for getting the IProjectItemTemplates.

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.