コード例 #1
0
 private void changeSuggestion_Click(object sender, EventArgs e)
 {
     if (this.suggestionsBox.SelectedItem != null)
     {
         ThisAddIn.checkOnDialogChange(this.suggestionsBox.SelectedItem.ToString());
     }
     else
     {
         ThisAddIn.checkOnDialogChange("");
     }
 }
コード例 #2
0
 public LTSettingsForm()
 {
     InitializeComponent();
     this.LT_server_label.Text        = Resources.WinFormStrings.LT_server;
     this.save_button.Text            = Resources.WinFormStrings.ok;
     this.cancel_button.Text          = Resources.WinFormStrings.cancel;
     this.default_language_label.Text = Resources.WinFormStrings.default_language;
     this.Text = Resources.WinFormStrings.LT_settings;
     foreach (string languageISO in ThisAddIn.getLanguagesList())
     {
         ComboItem myComboItem = new ComboItem(languageISO, ThisAddIn.getLanguageName(languageISO));
         this.comboBoxLanguages.Items.Add(myComboItem);
         if (Properties.Settings.Default.DefaultLanguage == languageISO)
         {
             this.comboBoxLanguages.SelectedItem = myComboItem;
         }
     }
     this.comboBoxLTServer.Items.AddRange(
         Properties.Settings.Default.LTServerOptions.Split(';'));
     this.comboBoxLTServer.Text = Properties.Settings.Default.LTServer;
     this.TopMost       = true;
     this.StartPosition = FormStartPosition.CenterScreen;
     this.Refresh();
 }
コード例 #3
0
        private void comboBoxLanguages_TextChanged(object sender, EventArgs e)
        {
            string selectedLanguage = ((ComboItem)this.comboBoxLanguages.SelectedItem).Key;

            this.languageSpecificSettings.Text = Resources.WinFormStrings.settings + ": " + ThisAddIn.getLanguageName(selectedLanguage);
            if (selectedLanguage.StartsWith("ca"))
            {
                this.languageSpecificSettings.Visible = true;
            }
            else
            {
                this.languageSpecificSettings.Visible = false;
            }
        }
コード例 #4
0
 private void ignoreAlwaysSuggestion_Click(object sender, EventArgs e)
 {
     ThisAddIn.checkOnDialogIgnoreAlways();
 }
コード例 #5
0
 private void button4_onclick(object sender, RibbonControlEventArgs e)
 {
     ThisAddIn.checkOnDialogStart();
 }