Example #1
0
        void OnSelectProviderCompleted(Object stepControl)
        {
            // get reference to panel
            WeblogConfigurationWizardPanelSelectProvider panelSelectProvider = stepControl as WeblogConfigurationWizardPanelSelectProvider;

            // record the provider and blog info
            IBlogProviderDescription provider = panelSelectProvider.SelectedBlogProvider;

            _temporarySettings.SetProvider(provider.Id, provider.Name, provider.PostApiUrl, provider.ClientType);
            _temporarySettings.HostBlogId = String.Empty;
            if (panelSelectProvider.TargetBlog != null)
            {
                _temporarySettings.SetBlogInfo(panelSelectProvider.TargetBlog);
            }
            _temporarySettings.HostBlogs = panelSelectProvider.UsersBlogs;

            // If we don't yet have a HostBlogId then the user needs to choose from
            // among available weblogs
            if (_temporarySettings.HostBlogId == String.Empty)
            {
                PerformSelectBlogSubStep();
            }
            else
            {
                // if we have not downloaded an editing template yet for this
                // weblog then execute this now
                PerformSettingsAutoDetectionSubStepIfNecessary();
            }
        }
Example #2
0
        void OnSelectProviderDisplayed(Object stepControl)
        {
            // get reference to panel
            WeblogConfigurationWizardPanelSelectProvider panelSelectProvider = stepControl as WeblogConfigurationWizardPanelSelectProvider;

            // show the panel
            panelSelectProvider.ShowPanel(
                _temporarySettings.ServiceName,
                _temporarySettings.HomepageUrl,
                _temporarySettings.Id,
                _temporarySettings.Credentials);
        }