Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Class: RT.Lingo.LanguageHelperWpfOld<TTranslation>

Summary

Helps an application using Lingo to display language selection UI using WPF controls but the WinForms translation 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.

Remarks

This class is required for as long as the WPF translation UI is unfinished.

Constructors

LanguageHelperWpfOld<TTranslation>(string programTitle, string moduleName, bool editable, TranslationForm<TTranslation>.Settings settings, Icon icon, 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.
void
PopulateMenuItems(ItemCollection items)
Appends menu items for changing languages and, optionally, translation editing. The menu items are hooked with appropriate click handlers.
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.