Table of Contents

Class CompositeCommand

Namespace
Artemis.UI.Shared.Services.ProfileEditor.Commands
Assembly
Artemis.UI.Shared.dll

Represents a profile editor command that can be used to combine multiple commands into one.

public class CompositeCommand : IProfileEditorCommand, IDisposable
Inheritance
object
CompositeCommand
Implements

Constructors

CompositeCommand(IEnumerable<IProfileEditorCommand>, string)

Creates a new instance of the CompositeCommand class.

public CompositeCommand(IEnumerable<IProfileEditorCommand> commands, string displayName)

Parameters

commands IEnumerable<IProfileEditorCommand>

The commands to execute.

displayName string

The display name of the composite command.

Properties

DisplayName

Gets the name of the command

public string DisplayName { get; }

Property Value

string

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Execute()

Executes the command

public void Execute()

Undo()

Undoes the command

public void Undo()