예제 #1
0
        void OnSelectImageEndpointDisplayed(Object stepControl)
        {
            // get reference to panel
            WeblogConfigurationWizardPanelSelectBlog panelSelectImageEndpoint = stepControl as WeblogConfigurationWizardPanelSelectBlog;

            // show the panel
            panelSelectImageEndpoint.ShowPanel(_temporarySettings.AvailableImageEndpoints, _temporarySettings.OptionOverrides[BlogClientOptions.IMAGE_ENDPOINT] as string);
        }
예제 #2
0
        void OnSelectBlogDisplayed(Object stepControl)
        {
            // get reference to panel
            WeblogConfigurationWizardPanelSelectBlog panelSelectBlog = stepControl as WeblogConfigurationWizardPanelSelectBlog;

            // show the panel
            panelSelectBlog.ShowPanel(_temporarySettings.HostBlogs, _temporarySettings.HostBlogId);
        }
예제 #3
0
        private void OnSelectImageEndpointCompleted(Object stepControl)
        {
            // get reference to panel
            WeblogConfigurationWizardPanelSelectBlog panelSelectBlog = stepControl as WeblogConfigurationWizardPanelSelectBlog;

            // get the selected blog
            IDictionary optionOverrides = _temporarySettings.HomePageOverrides;

            optionOverrides[BlogClientOptions.IMAGE_ENDPOINT] = panelSelectBlog.SelectedBlog.Id;
            _temporarySettings.HomePageOverrides = optionOverrides;
        }
예제 #4
0
        private void OnSelectBlogCompleted(Object stepControl)
        {
            // get reference to panel
            WeblogConfigurationWizardPanelSelectBlog panelSelectBlog = stepControl as WeblogConfigurationWizardPanelSelectBlog;

            // get the selected blog
            _temporarySettings.SetBlogInfo(panelSelectBlog.SelectedBlog);

            // if we have not downloaded an editing template yet for this
            // weblog then execute this now
            PerformSettingsAutoDetectionSubStepIfNecessary();
        }
예제 #5
0
        void PerformSelectImageEndpointSubStep()
        {
            WeblogConfigurationWizardPanelSelectBlog panel = new WeblogConfigurationWizardPanelSelectBlog();

            panel.LabelText = Res.Get(StringId.CWSelectImageEndpointText);
            addWizardSubStep(new WizardSubStep(
                                 panel,
                                 StringId.ConfigWizardSelectImageEndpoint,
                                 new DisplayCallback(OnSelectImageEndpointDisplayed),
                                 new VerifyStepCallback(OnValidatePanel),
                                 new NextCallback(OnSelectImageEndpointCompleted),
                                 null,
                                 null));
        }
        private void commandShowAtomImageEndpointSelector_Execute(object sender, EventArgs e)
        {
            OpenLiveWriter.Controls.Wizard.WizardController controller = new OpenLiveWriter.Controls.Wizard.WizardController();
            WeblogConfigurationWizardPanelSelectBlog selectBlogControl = new WeblogConfigurationWizardPanelSelectBlog();
            selectBlogControl.HeaderText = Res.Get(StringId.ConfigWizardSelectImageEndpoint);
            selectBlogControl.LabelText = Res.Get(StringId.CWSelectImageEndpointText);
            selectBlogControl.PrepareForAdd();
            controller.addWizardStep(new OpenLiveWriter.Controls.Wizard.WizardStep(selectBlogControl, StringId.ConfigWizardSelectImageEndpoint, null, null, null, null, null));

            using (OpenLiveWriter.Controls.Wizard.WizardForm form = new OpenLiveWriter.Controls.Wizard.WizardForm(controller))
            {
                form.Size = new Size((int)Math.Ceiling(DisplayHelper.ScaleX(460)), (int)Math.Ceiling(DisplayHelper.ScaleY(400)));
                form.Text = Res.Get(StringId.CWTitle);
                form.ShowDialog(this);
            }
        }
 void PerformSelectImageEndpointSubStep()
 {
     WeblogConfigurationWizardPanelSelectBlog panel = new WeblogConfigurationWizardPanelSelectBlog();
     panel.LabelText = Res.Get(StringId.CWSelectImageEndpointText);
     addWizardSubStep(new WizardSubStep(
                         panel,
                         StringId.ConfigWizardSelectImageEndpoint,
                         new DisplayCallback(OnSelectImageEndpointDisplayed),
                         new VerifyStepCallback(OnValidatePanel),
                         new NextCallback(OnSelectImageEndpointCompleted),
                         null,
                         null));
 }