private void SettingsFlyout_ClosingFinished(object sender, RoutedEventArgs e)
        {
            ProgressSpinner.IsActive = true;

            Properties.Settings.Default.CMSiteServer = CMSiteServerTextBox.Text;
            Properties.Settings.Default.Save();

            cmHandler       = new CMHandler(Properties.Settings.Default.CMSiteServer);
            cmAppCategories = cmHandler.GetCMApplicationCategories(true);

            var categories = new ObservableCollection <string>(cmAppCategories.Select(c => c.LocalizedCategoryInstanceName).OrderBy(c => c).ToList());

            CategoriesListBox.DataContext = categories;

            ProgressSpinner.IsActive = false;
        }
        private void MenuFileChangeSiteServer_Click(object sender, RoutedEventArgs e)
        {
            ProgressSpinner.IsActive = true;
            Settings settings = new Settings();

            settings.ShowDialog();

            Properties.Settings.Default.Save();

            cmHandler       = new CMHandler(Properties.Settings.Default.CMSiteServer);
            cmAppCategories = cmHandler.GetCMApplicationCategories(true);

            var categories = new ObservableCollection <string>(cmAppCategories.Select(c => c.LocalizedCategoryInstanceName).OrderBy(c => c).ToList());

            CategoriesListBox.DataContext = categories;
            ProgressSpinner.IsActive      = false;
        }