Ejemplo n.º 1
0
        private void ComboBoxLang_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var newLang = ComboBoxLang.SelectedItem.ToString();

            switch (newLang)
            {
            case "French":
                Transharp.SetCurrentLanguage(Transharp.LangsEnum.French);
                break;

            case "English":
                Transharp.SetCurrentLanguage(Transharp.LangsEnum.English);
                break;

            default:
                Transharp.SetCurrentLanguage(Transharp.LangsEnum.English);
                newLang = "English";
                break;
            }
            SelectionTextBlock.Text = Transharp.GetTranslation("PM_SelectionLanguage");

            Settings.Default.Language = newLang;
        }