Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Abstract class: RT.Lingo.LanguageHelper<TTranslation>

Summary

Helps an application using Lingo to display language selection UI.

Generic type parameters

TTranslation
  • Must derive from: RT.Lingo.TranslationBase.
  • Must have a default constructor.
The type of the class holding the program’s translation.

Constructors

LanguageHelper<TTranslation>(string programTitle, string moduleName, bool editable, Func<Language> getCurrentLanguage)
Constructor.

Instance methods

voidCloses the translation dialog (if it is visible) without any prompts regarding unsaved changes.
boolReturns a value indicating whether it is okay to close the application. The user is asked if there are any unsaved changes.
voidChanges the currently selected language in exactly the same way as using one of the UI elements would.

Events

SetTranslation<TTranslation> Occurs whenever the translation has been changed. The application must respond by updating *all* visible UI and storing the language of the selected translation for use on next program start.