public WaitControl(int currentLanguageID) { InitializeComponent(); ResizeControls(); _currentLanguageID = currentLanguageID; Translator.TranslateControls(this, "OfficeUI.WaitControlTable.txt", _currentLanguageID); }
public SelectOfficeAppControl(int currentLanguageID, SelectOfficeEventHandler handler) { InitializeComponent(); _eventHandler = handler; _currentLanguageID = currentLanguageID; Translator.TranslateControls(this, "OfficeUI.SelectOfficeAppControlTable.txt", _currentLanguageID); }
public void Translate() { noChangeEventFlag = true; int selIndex = comboBoxLoadBehavior.SelectedIndex; Translator.TranslateControls(this, "ProjectWizard.Controls.LoadControl.txt", ProjectWizardControl.CurrentLanguageID); TranslateComboBox(); comboBoxLoadBehavior.SelectedIndex = selIndex; noChangeEventFlag = false; }
public ErrorForm(Exception exception, ErrorCategory category, int currentLanguageID) { InitializeComponent(); _category = category; if (ErrorCategory.Critical == category) { labelExitMessage.Visible = true; } DisplayException(exception); currentLanguageID = ValidateLanguageID(currentLanguageID); Translator.TranslateControls(this, "Ressources.ErrorFormMessageTable.txt", currentLanguageID); this.Height = buttonOK.Top + buttonOK.Height + 40; }
public SelectProjectTypeDialog() { InitializeComponent(); comboBoxNetRuntime.SelectedIndex = 2; if (IsAdministrator()) { labelNoAdminHint.Visible = false; radioButtonDesktop.Enabled = true; radioButtonUserFolder.Enabled = true; radioButtonVSProjectFolder.Enabled = true; } Translator.TranslateControls(this, "ProjectWizard.SelectProjectTypeDialog.txt", ProjectWizardControl.CurrentLanguageID); }
private void ComboBoxLanguage_SelectedIndexChanged(object sender, EventArgs e) { try { int languageID = IndexToLanguageID(comboBoxLanguage.SelectedIndex); CurrentLanguageID = languageID; Translator.TranslateControls(this, "Ressources.MessageTable.txt", languageID); foreach (IToolboxControl item in ToolboxControls) { item.SetLanguage(languageID); } } catch (Exception exception) { ErrorForm.ShowError(this, exception, ErrorCategory.NonCritical, CurrentLanguageID); } }
public void SetLanguage(int id) { _currentLanguageID = id; Translator.TranslateControls(this, "ProjectWizard.MessageTable.txt", _currentLanguageID); }
public void Translate() { Translator.TranslateControls(this, "ProjectWizard.Controls.GuiControl.txt", ProjectWizardControl.CurrentLanguageID); }
public void SetLanguage(int id) { _currentLanguageID = id; _waitControl.CurrentLanguageID = id; Translator.TranslateControls(this, "OfficeUI.MessageTable.txt", _currentLanguageID); }