private void ManageLanguages() { Forms.LangageSelectionForm langForm = new CallButler.Manager.Forms.LangageSelectionForm(supportedLanguages, defaultLanguage); if (langForm.ShowDialog(this) == DialogResult.OK) { supportedLanguages = langForm.SelectedLanguages; ManagementInterfaceClient.ManagementInterface.SetLanguages(ManagementInterfaceClient.AuthInfo, supportedLanguages); UpdateLanguages(); NotifyUpdateLanguageGreeting(); } else { cboLanguage.SelectedIndex = 1; } }
private void ManageLanguages() { Forms.LangageSelectionForm langForm = new CallButler.Manager.Forms.LangageSelectionForm(supportedLanguages, defaultLanguage); if (langForm.ShowDialog(this) == DialogResult.OK) { supportedLanguages = langForm.SelectedLanguages; ManagementInterfaceClient.ManagementInterface.SetLanguages(ManagementInterfaceClient.AuthInfo, supportedLanguages); UpdateLanguages(); NotifyUpdateLanguageGreeting(); } else cboLanguage.SelectedIndex = 1; }