Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.Lingo.TranslationForm<TTranslation>

  • Assembly: RT.Lingo, Version=1.0.0.9999, Culture=neutral, PublicKeyToken=null
  • Namespace: RT.Lingo
  • Show inherited types...
  • Show implemented interfaces...

Summary

Provides a GUI for the user to edit a translation for the application.

Generic type parameters

TTranslation
  • Must derive from: RT.Lingo.TranslationBase.
  • Must have a default constructor.
The type containing the TrString and TrStringNum fields to be translated.

Constructors

TranslationForm<TTranslation>(TranslationForm<TTranslation>.Settings settings, Icon icon, string programTitle, string moduleName, Language language)
Main constructor.

Instance methods

void
  • Implements: ITranslationDialog.CloseWithoutPrompts()
Closes the translation form without asking the user's confirmation when unsaved changes exist.
void
SaveChanges(bool fireTranslationChanged)
  • Implements: ITranslationDialog.SaveChanges(bool)
Saves the changes to the translation currently being edited.
void Shows the form properly: if it is visible but minimized it will be restored and activated; otherwise the base implementation of Show will be invoked.
DialogResult
ShowDialog(Form centerInForm = null, bool repositionParentAfterwards = false)
Shows the form as a modal dialog box with the currently active window set as its owner.

Instance properties

bool
  • Implements: ITranslationDialog.AnyChanges
Returns true if the user has made any changes that are currently unsaved.
boolDetermines whether the current managed form is maximised, or is minimised and would be maximised if restored.
boolDetermines if the current managed form is minimised.
intGets the height of the form when in normal state (i.e. not minimized or maximized).
intGets the X-coordinate of the form when in normal state (i.e. not minimized or maximized).
intGets the Y-coordinate of the form when in normal state (i.e. not minimized or maximized).
intGets the width of the form when in normal state (i.e. not minimized or maximized).

Events

SetTranslation<TTranslation> Fires every time the translation is updated on the disk (i.e. when the user clicks either "Save & Close" or "Apply changes").

Nested types

Stores the size, position and maximized state of the form.
Holds the settings of the TranslationForm<TTranslation>.