C# Class NanoByte.Common.Undo.SetLocalizableString

An undo command that sets a LocalizableString in a LocalizableStringCollection.
Inheritance: SimpleCommand
Afficher le fichier Open project: nano-byte/common Class Usage Examples

Méthodes publiques

Méthode Description
SetLocalizableString ( LocalizableStringCollection collection, LocalizableString element ) : System.Collections.Generic

Creates a new localizable string command.

Méthodes protégées

Méthode Description
OnExecute ( ) : void

Sets the entry in the collection.

OnUndo ( ) : void

Restores the original entry in the collection.

Method Details

OnExecute() protected méthode

Sets the entry in the collection.
protected OnExecute ( ) : void
Résultat void

OnUndo() protected méthode

Restores the original entry in the collection.
protected OnUndo ( ) : void
Résultat void

SetLocalizableString() public méthode

Creates a new localizable string command.
public SetLocalizableString ( LocalizableStringCollection collection, LocalizableString element ) : System.Collections.Generic
collection LocalizableStringCollection The collection to be modified.
element LocalizableString The entry to be set in the .
Résultat System.Collections.Generic