private void GetConfiguration()
        {
            ShowProgressBar(true);
            CSISystemContext.CSIWebServerName   = CSIWebServerEdit.Text;
            CSISystemContext.Theme              = InterpretThemeValue((string)ThemeSpinner.SelectedItem ?? string.Empty);
            CSISystemContext.Configuration      = (string)ConfigurationSpinner.SelectedItem ?? string.Empty;
            CSISystemContext.SavedUser          = UserEdit.Text;
            CSISystemContext.SavedPassword      = PasswordEdit.Text;
            CSISystemContext.EnableHTTPS        = EnableHTTPSSwitch.Checked;
            CSISystemContext.UseRESTForRequest  = UseRESTForRequestSwitch.Checked;
            CSISystemContext.LoadPicture        = LoadPictureSwitch.Checked;
            CSISystemContext.ForceAutoPost      = ForceAutoPostSwitch.Checked;
            CSISystemContext.ShowSuccessMessage = ShowSuccessMessageSwitch.Checked;
            CSISystemContext.RecordCap          = RecordCapEdit.Text;
            CSISystemContext.SaveUser           = SaveUserSwitch.Checked;
            CSISystemContext.SavePassword       = SavePasswordSwitch.Checked;
            CSIBaseInvoker invoker = new CSIBaseInvoker(CSISystemContext)
            {
                UseAsync = true
            };

            invoker.GetConfigurationNamesCompleted += OnGetConfigurationNamesCompleted;
            CSISystemContext.ConfigurationList      = new List <string>(invoker.GetConfigurationList());
            if (CSISystemContext.ConfigurationList is null)
            {
                CSISystemContext.ConfigurationList = new List <string> {
                    string.Empty
                };
                ShowProgressBar(false);
            }
        }