Esempio n. 1
0
        private void OnStaticSiteInitialDisplayed(Object stepControl)
        {
            // Populate data
            var panel = (stepControl as WeblogConfigurationWizardPanelStaticSiteInitial);

            // Load static config from credentials provided
            staticSiteConfig = StaticSiteConfig.LoadConfigFromBlogSettings(_temporarySettings);
            panel.LoadFromConfig(staticSiteConfig);
        }
Esempio n. 2
0
        public void GeneralPanel_RunAccountWizard()
        {
            var settingsCopy = TemporaryBlogSettings.CreateNew();

            settingsCopy.CopyFrom(_temporarySettings);
            SaveConfigToBlogSettings(settingsCopy);

            var result = WeblogConfigurationWizardController.EditTemporarySettings(formPreferences, settingsCopy);

            // If wizard is successful, load the new settings back into the form.
            if (result)
            {
                _temporarySettings.CopyFrom(settingsCopy);
                Config = StaticSiteConfig.LoadConfigFromBlogSettings(_temporarySettings);
                LoadConfigIntoPanels();
            }
        }
Esempio n. 3
0
 public void LoadConfigFromBlogSettings()
 => Config = StaticSiteConfig.LoadConfigFromBlogSettings(_temporarySettings);