Table of Contents

Class UpdateLayerProperty<T>

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

Represents a profile editor command that can be used to update a layer property of type T.

public class UpdateLayerProperty<T> : IProfileEditorCommand

Type Parameters

T
Inheritance
object
UpdateLayerProperty<T>
Implements

Constructors

UpdateLayerProperty(LayerProperty<T>, T, TimeSpan?)

Creates a new instance of the UpdateLayerProperty<T> class.

public UpdateLayerProperty(LayerProperty<T> layerProperty, T newValue, TimeSpan? time)

Parameters

layerProperty LayerProperty<T>
newValue T
time TimeSpan?

UpdateLayerProperty(LayerProperty<T>, T, T, TimeSpan?)

Creates a new instance of the UpdateLayerProperty<T> class.

public UpdateLayerProperty(LayerProperty<T> layerProperty, T newValue, T originalValue, TimeSpan? time)

Parameters

layerProperty LayerProperty<T>
newValue T
originalValue T
time TimeSpan?

Properties

DisplayName

Gets the name of the command

public string DisplayName { get; }

Property Value

string

Methods

Execute()

Executes the command

public void Execute()

Undo()

Undoes the command

public void Undo()