private void ManageLanguages() { string[] codes = Mother.GetCodes(); string[] languages = Mother.GetLanguages(); int firstSelected = 0; for (int i = 0; i < languages.Length; ++i) { comboBoxLanguage.Items.Add(languages[i]); if (codes[i] == OriginalLanguage) { firstSelected = i; } } comboBoxLanguage.SelectedIndex = firstSelected; }