private static ArrayList LoadAccountWizardsFromXml()
        {
            ArrayList accountWizardsFromXml = new ArrayList();

            try
            {
                using (SettingsPersisterHelper settingsKey = ApplicationEnvironment.UserSettingsRoot.GetSubSettings("AccountWizard\\Custom"))
                {
                    foreach (string customizationName in settingsKey.GetNames())
                    {
                        IBlogProviderAccountWizardDescription wizardDescription = LoadAccountWizardFromXml(settingsKey.GetString(customizationName, String.Empty));
                        if (wizardDescription != null)
                        {
                            accountWizardsFromXml.Add(wizardDescription);
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                Trace.Fail("Unexpected exception in LoadAccountWizardsFromXml: " + ex.ToString());
            }

            return(accountWizardsFromXml);
        }
        public WeblogConfigurationWizardPanelWelcome()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            this.labelHeader.Text                = string.Format(CultureInfo.InvariantCulture, Res.Get(StringId.ConfigureProduct), ApplicationEnvironment.ProductNameQualified);
            this.labelWelcomeText.Text           = Res.Get(StringId.CWWelcomeText);
            this.linkLabelLearnMore.Text         = Res.Get(StringId.ConfigWizardLearnMore);
            this.linkLabelLearnMore.LinkClicked += new LinkLabelLinkClickedEventHandler(linkLabelLearnMore_Click);
            this.linkLabelLearnMore.LinkColor    = SystemInformation.HighContrast ? SystemColors.HotTrack : Color.FromArgb(0, 102, 204);

            if (!DesignMode)
            {
                // customize default provider text
                labelWelcomeText.Text   = String.Format(CultureInfo.CurrentCulture, labelWelcomeText.Text, ApplicationEnvironment.ProductNameQualified);
                linkLabelLearnMore.Text = String.Format(CultureInfo.CurrentCulture, linkLabelLearnMore.Text, ApplicationEnvironment.ProductNameQualified);

                // is there a custom account wizard with a welcome page installed?
                IBlogProviderAccountWizardDescription providerAccountWizard = null;
                foreach (IBlogProviderAccountWizardDescription wizard in BlogProviderAccountWizard.InstalledAccountWizards)
                {
                    if (wizard.WelcomePage != null)
                    {
                        providerAccountWizard = wizard;
                        break;
                    }
                }
            }
        }
 public WeblogType(IBlogProviderAccountWizardDescription providerAccountWizard)
 {
     _providerAccountWizard = providerAccountWizard;
     _name = providerAccountWizard.ServiceName;
 }
 public WeblogType(IBlogProviderAccountWizardDescription providerAccountWizard)
 {
     _providerAccountWizard = providerAccountWizard;
     _name = providerAccountWizard.ServiceName;
 }
        private void OnChooseBlogTypeCompleted(Object stepControl)
        {
            // get reference to panel
            WeblogConfigurationWizardPanelBlogType panelBlogType = stepControl as WeblogConfigurationWizardPanelBlogType;

            // if the user is changing types then blank out the blog info
            if (panelBlogType.UserChangedSelection)
            {
                _temporarySettings.HomepageUrl = String.Empty;
                _temporarySettings.Credentials.Clear();
            }

            // set the user's choice
            _temporarySettings.IsSharePointBlog = panelBlogType.IsSharePointBlog;

            // did this bootstrap a custom account wizard?
            _providerAccountWizard = panelBlogType.ProviderAccountWizard;

            // add the next wizard sub step as appropriate
            if (_temporarySettings.IsSharePointBlog)
            {
                AddSharePointBasicInfoSubStep(false);
            }
            else
            {
                AddBasicInfoSubStep();
            }
        }