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
-
objectProfileEditorHistory
Constructors
ProfileEditorHistory(ProfileConfiguration)
Creates a new instance of the ProfileEditorHistory class.
public ProfileEditorHistory(ProfileConfiguration profileConfiguration)
Parameters
profileConfigurationProfileConfigurationThe 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
CanUndo
Gets an observable sequence containing a boolean value indicating whether history can be undone.
public IObservable<bool> CanUndo { get; }
Property Value
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
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
commandIProfileEditorCommandThe command to execute