void SetTexts(int languageID)
 {
     parentFormLabelText.Text = activeForm.GetName();
     parentFormID.Text        = activeForm.GetID().ToString();
     ControlNameLabel.Text    = activeFormControl.GetName();
     formControlID.Text       = activeFormControl.GetID().ToString();
     OriginalTextLabel.Text   = activeFormControl.GetOriginalText();
     ControlTypeLabel.Text    = activeFormControl.GetType();
     TranslationInput.Text    = TranslationAvailable(activeFormControl.GetID(), languageID) ? translationList.GetTranslation(activeFormControl.FormControl, languageList.GetLanguage(languageID)).TranslatedText : "";
     if (activeFormControl.GetOriginalText() != null && activeFormControl.GetOriginalText().Length > 0)
     {
         Clipboard.SetText(OriginalTextLabel.Text);
     }
     else
     {
         return;
     }
 }
예제 #2
0
 static string GetTranslatedText(FormControl formControl, Language language)
 {
     return(translationList.GetTranslation(formControl, language).TranslatedText);
 }