Table of Contents

Class DeleteProjectItemCommandHandler

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

Command handler for the DeleteProjectItemCommandDefinition.

[CommandHandler]
public class DeleteProjectItemCommandHandler : ScriptCommandHandlerBase<DeleteProjectItemCommandDefinition>, ICommandHandler<DeleteProjectItemCommandDefinition>, ICommandHandler
Inheritance
DeleteProjectItemCommandHandler
Implements
Inherited Members

Constructors

DeleteProjectItemCommandHandler(IShell, IEditorService)

Initializes a new instance of the DeleteProjectItemCommandHandler class.

[ImportingConstructor]
public DeleteProjectItemCommandHandler(IShell shell, IEditorService editorService)

Parameters

shell IShell

Gemini shell.

editorService IEditorService

Editor service.

Methods

Run(Command)

Calls the Delete() and deletes the selected item from the project.

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.