private void GoogleOrMicrosoftTranslate_Shown(object sender, EventArgs e) { _googleTranslationService = GoogleTranslationInitializer.Init(); _microsoftTranslationService = MicrosoftTranslationInitializer.Init(true); InitLanguageComboboxes(); Refresh(); Translate(); }
private void InitTranslationServices() { AddTranslationService(GoogleTranslationInitializer.Init(this)); AddTranslationService(MicrosoftTranslationInitializer.Init()); AddTranslationService(new NikseDkTranslationService()); if (comboBoxTranslationServices.Items.Count > 0 && comboBoxTranslationServices.SelectedIndex < 0) { comboBoxTranslationServices.SelectedIndex = 0; } }