C# Class NanoByte.Common.Undo.SetLocalizableString

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

Public Methods

Method Description
SetLocalizableString ( LocalizableStringCollection collection, LocalizableString element ) : System.Collections.Generic

Creates a new localizable string command.

Protected Methods

Method Description
OnExecute ( ) : void

Sets the entry in the collection.

OnUndo ( ) : void

Restores the original entry in the collection.

Method Details

OnExecute() protected method

Sets the entry in the collection.
protected OnExecute ( ) : void
return void

OnUndo() protected method

Restores the original entry in the collection.
protected OnUndo ( ) : void
return void

SetLocalizableString() public method

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 .
return System.Collections.Generic