Example #1
0
        public SettingsPage()
        {
            InitializeComponent();

            Languages = MainFunctions.GetLanguages();
            AppLanguage.ItemsSource = Languages.ToArray();
            AppLanguage.Text        = MainFunctions.Main.MainLanguage;
            this.Resources          = MainFunctions.GetLanguageResource();
        }
Example #2
0
 private void LanguageChange(object sender, SelectionChangedEventArgs e)
 {
     if (AppLanguage.SelectedItem != null)
     {
         string lang = AppLanguage.SelectedItem.ToString();
         MainFunctions.Main.MainLanguage = lang;
         MainFunctions.Main.Resources    = MainFunctions.GetLanguageResource();
         this.Resources = MainFunctions.GetLanguageResource();
     }
 }