Class AddProjectItemCommandHandler
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
IShellGemini shell.
windowManager
IWindowManagerWindow manger for showing the dialog.
templateService
IProjectItemTemplateServiceTemplate service for getting the IProjectItemTemplates.
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
command
CommandThe executing command.
Returns
- Task
The running task.
Update(Command)
Updates the command.
public override void Update(Command command)
Parameters
command
CommandThe executing command.