Table of Contents

Class SetLocalizableString

Namespace
NanoByte.Common.Undo
Assembly
NanoByte.Common.dll

An undo command that sets a LocalizableString in a LocalizableStringCollection.

public sealed class SetLocalizableString : SimpleCommand, IUndoCommand
Inheritance
object
SetLocalizableString
Implements
Inherited Members
Extension Methods

Constructors

SetLocalizableString(LocalizableStringCollection, LocalizableString)

An undo command that sets a LocalizableString in a LocalizableStringCollection.

public SetLocalizableString(LocalizableStringCollection collection, LocalizableString element)

Parameters

collection LocalizableStringCollection

The collection to be modified.

element LocalizableString

The entry to be set in the collection.

Methods

OnExecute()

Sets the entry in the collection.

protected override void OnExecute()

OnUndo()

Restores the original entry in the collection.

protected override void OnUndo()