Class ProfileEditorHistory
Represents the command history of a profile configuration.
Namespace: Artemis.UI.Shared.Services.ProfileEditor
Assembly: Artemis.UI.Shared.dll
Syntax
public class ProfileEditorHistory
Constructors
ProfileEditorHistory(ProfileConfiguration)
Creates a new instance of the ProfileEditorHistory class.
Declaration
public ProfileEditorHistory(ProfileConfiguration profileConfiguration)
Parameters
Type | Name | Description |
---|---|---|
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.
Declaration
public IObservable<bool> CanRedo { get; }
Property Value
Type | Description |
---|---|
IObservable<bool> |
CanUndo
Gets an observable sequence containing a boolean value indicating whether history can be undone.
Declaration
public IObservable<bool> CanUndo { get; }
Property Value
Type | Description |
---|---|
IObservable<bool> |
Execute
Gets a reactive command that can be executed to execute an instance of a IProfileEditorCommand and puts it in history.
Declaration
public ReactiveCommand<IProfileEditorCommand, Unit> Execute { get; }
Property Value
Type | Description |
---|---|
ReactiveCommand<IProfileEditorCommand, Unit> |
ProfileConfiguration
Gets the profile configuration the history relates to.
Declaration
public ProfileConfiguration ProfileConfiguration { get; }
Property Value
Type | Description |
---|---|
ProfileConfiguration |
Redo
Gets a reactive command that can be executed to redo history.
Declaration
public ReactiveCommand<Unit, IProfileEditorCommand?> Redo { get; }
Property Value
Type | Description |
---|---|
ReactiveCommand<Unit, IProfileEditorCommand> |
Undo
Gets a reactive command that can be executed to undo history.
Declaration
public ReactiveCommand<Unit, IProfileEditorCommand?> Undo { get; }
Property Value
Type | Description |
---|---|
ReactiveCommand<Unit, IProfileEditorCommand> |
Methods
Clear()
Clears the history.
Declaration
public void Clear()
ExecuteEditorCommand(IProfileEditorCommand)
Executes the provided command
and puts it in history.
Declaration
public void ExecuteEditorCommand(IProfileEditorCommand command)
Parameters
Type | Name | Description |
---|---|---|
IProfileEditorCommand | command | The command to execute |