NanoByte.Common
Public Member Functions | Protected Member Functions | List of all members
NanoByte.Common.Undo.SetLocalizableString Class Reference

An undo command that sets a LocalizableString in a LocalizableStringCollection. More...

Inheritance diagram for NanoByte.Common.Undo.SetLocalizableString:
NanoByte.Common.Undo.SimpleCommand NanoByte.Common.Undo.IUndoCommand

Public Member Functions

 SetLocalizableString (LocalizableStringCollection collection, LocalizableString element)
 Creates a new localizable string command. More...
 
- Public Member Functions inherited from NanoByte.Common.Undo.SimpleCommand
void Execute ()
 Performs the desired action. More...
 
virtual void Undo ()
 Undoes the changes made by Execute. More...
 

Protected Member Functions

override void OnExecute ()
 Sets the entry in the collection. More...
 
override void OnUndo ()
 Restores the original entry in the collection. More...
 

Detailed Description

An undo command that sets a LocalizableString in a LocalizableStringCollection.

Constructor & Destructor Documentation

◆ SetLocalizableString()

NanoByte.Common.Undo.SetLocalizableString.SetLocalizableString ( LocalizableStringCollection  collection,
LocalizableString  element 
)
inline

Creates a new localizable string command.

Parameters
collectionThe collection to be modified.
elementThe entry to be set in the collection .

Member Function Documentation

◆ OnExecute()

override void NanoByte.Common.Undo.SetLocalizableString.OnExecute ( )
inlineprotectedvirtual

Sets the entry in the collection.

Implements NanoByte.Common.Undo.SimpleCommand.

◆ OnUndo()

override void NanoByte.Common.Undo.SetLocalizableString.OnUndo ( )
protectedvirtual

Restores the original entry in the collection.

Implements NanoByte.Common.Undo.SimpleCommand.


The documentation for this class was generated from the following file: