public SettingsPage()
        {
            InitializeComponent();

            Languages = MainFunctions.GetLanguages();
            AppLanguage.ItemsSource = Languages.ToArray();
            AppLanguage.Text        = MainFunctions.Main.MainLanguage;
            this.Resources          = MainFunctions.GetLanguageResource();
        }
 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();
     }
 }