Exemple #1
0
 public WaitControl(int currentLanguageID)
 {
     InitializeComponent();
     ResizeControls();
     _currentLanguageID = currentLanguageID;
     Translator.TranslateControls(this, "OfficeUI.WaitControlTable.txt", _currentLanguageID);
 }
Exemple #2
0
 public SelectOfficeAppControl(int currentLanguageID, SelectOfficeEventHandler handler)
 {
     InitializeComponent();
     _eventHandler      = handler;
     _currentLanguageID = currentLanguageID;
     Translator.TranslateControls(this, "OfficeUI.SelectOfficeAppControlTable.txt", _currentLanguageID);
 }
Exemple #3
0
        public void Translate()
        {
            noChangeEventFlag = true;
            int selIndex = comboBoxLoadBehavior.SelectedIndex;

            Translator.TranslateControls(this, "ProjectWizard.Controls.LoadControl.txt", ProjectWizardControl.CurrentLanguageID);
            TranslateComboBox();
            comboBoxLoadBehavior.SelectedIndex = selIndex;
            noChangeEventFlag = false;
        }
Exemple #4
0
 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);
 }
Exemple #6
0
 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);
     }
 }
Exemple #7
0
 public void SetLanguage(int id)
 {
     _currentLanguageID = id;
     Translator.TranslateControls(this, "ProjectWizard.MessageTable.txt", _currentLanguageID);
 }
Exemple #8
0
 public void Translate()
 {
     Translator.TranslateControls(this, "ProjectWizard.Controls.GuiControl.txt", ProjectWizardControl.CurrentLanguageID);
 }
Exemple #9
0
 public void SetLanguage(int id)
 {
     _currentLanguageID             = id;
     _waitControl.CurrentLanguageID = id;
     Translator.TranslateControls(this, "OfficeUI.MessageTable.txt", _currentLanguageID);
 }