Class SetLocalizableString
An undo command that sets a LocalizableString in a LocalizableStringCollection.
Implements
Namespace: NanoByte.Common.Undo
Assembly: NanoByte.Common.dll
Syntax
public sealed class SetLocalizableString : SimpleCommand, IUndoCommand
Constructors
SetLocalizableString(LocalizableStringCollection, LocalizableString)
An undo command that sets a LocalizableString in a LocalizableStringCollection.
Declaration
public SetLocalizableString(LocalizableStringCollection collection, LocalizableString element)
Parameters
Type | Name | Description |
---|---|---|
LocalizableStringCollection | collection | The collection to be modified. |
LocalizableString | element | The entry to be set in the |
Methods
OnExecute()
Sets the entry in the collection.
Declaration
protected override void OnExecute()
Overrides
OnUndo()
Restores the original entry in the collection.
Declaration
protected override void OnUndo()