Table of Contents

Class ProfileEditorHistory

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

Represents the command history of a profile configuration.

public class ProfileEditorHistory
Inheritance
object
ProfileEditorHistory

Constructors

ProfileEditorHistory(ProfileConfiguration)

Creates a new instance of the ProfileEditorHistory class.

public ProfileEditorHistory(ProfileConfiguration profileConfiguration)

Parameters

profileConfiguration ProfileConfiguration

The profile configuration the history relates to.

Properties

CanRedo

Gets an observable sequence containing a boolean value indicating whether history can be redone.

public IObservable<bool> CanRedo { get; }

Property Value

IObservable<bool>

CanUndo

Gets an observable sequence containing a boolean value indicating whether history can be undone.

public IObservable<bool> CanUndo { get; }

Property Value

IObservable<bool>

Execute

Gets a reactive command that can be executed to execute an instance of a IProfileEditorCommand and puts it in history.

public ReactiveCommand<IProfileEditorCommand, Unit> Execute { get; }

Property Value

ReactiveCommand<IProfileEditorCommand, Unit>

ProfileConfiguration

Gets the profile configuration the history relates to.

public ProfileConfiguration ProfileConfiguration { get; }

Property Value

ProfileConfiguration

Redo

Gets a reactive command that can be executed to redo history.

public ReactiveCommand<Unit, IProfileEditorCommand?> Redo { get; }

Property Value

ReactiveCommand<Unit, IProfileEditorCommand>

Undo

Gets a reactive command that can be executed to undo history.

public ReactiveCommand<Unit, IProfileEditorCommand?> Undo { get; }

Property Value

ReactiveCommand<Unit, IProfileEditorCommand>

Methods

Clear()

Clears the history.

public void Clear()

ExecuteEditorCommand(IProfileEditorCommand)

Executes the provided command and puts it in history.

public void ExecuteEditorCommand(IProfileEditorCommand command)

Parameters

command IProfileEditorCommand

The command to execute