public static string Welcome(IWin32Window owner)
 {
     TemporaryBlogSettings temporarySettings = TemporaryBlogSettings.CreateNew();
     using (WeblogConfigurationWizardController controller = new WeblogConfigurationWizardController(temporarySettings))
     {
         return controller.WelcomeWeblog(owner);
     }
 }
Esempio n. 2
0
        public static string Welcome(IWin32Window owner)
        {
            TemporaryBlogSettings temporarySettings = TemporaryBlogSettings.CreateNew();

            using (WeblogConfigurationWizardController controller = new WeblogConfigurationWizardController(temporarySettings))
            {
                return(controller.WelcomeWeblog(owner));
            }
        }
Esempio n. 3
0
        public static string Add(IWin32Window owner, bool permitSwitchingWeblogs, out bool switchToWeblog)
        {
            TemporaryBlogSettings temporarySettings = TemporaryBlogSettings.CreateNew();

            temporarySettings.IsNewWeblog    = true;
            temporarySettings.SwitchToWeblog = true;

            using (WeblogConfigurationWizardController controller = new WeblogConfigurationWizardController(temporarySettings))
            {
                return(controller.AddWeblog(owner, ApplicationEnvironment.ProductNameQualified, permitSwitchingWeblogs, out switchToWeblog));
            }
        }
        public static string Add(IWin32Window owner, bool permitSwitchingWeblogs, out bool switchToWeblog)
        {
            TemporaryBlogSettings temporarySettings = TemporaryBlogSettings.CreateNew();

            temporarySettings.IsNewWeblog = true;
            temporarySettings.SwitchToWeblog = true;

            using (WeblogConfigurationWizardController controller = new WeblogConfigurationWizardController(temporarySettings))
            {
                return controller.AddWeblog(owner, ApplicationEnvironment.ProductNameQualified, permitSwitchingWeblogs, out switchToWeblog);
            }
        }
Esempio n. 5
0
        public static string AddBlog(IWin32Window owner, Uri blogToAdd)
        {
            TemporaryBlogSettings temporarySettings = TemporaryBlogSettings.CreateNew();

            temporarySettings.IsNewWeblog    = true;
            temporarySettings.SwitchToWeblog = true;

            string username;
            string password;
            Uri    homepageUrl;

            ParseAddBlogUri(blogToAdd, out username, out password, out homepageUrl);
            temporarySettings.HomepageUrl          = homepageUrl.ToString();
            temporarySettings.Credentials.Username = username;
            temporarySettings.Credentials.Password = password;
            temporarySettings.SavePassword         = false;

            using (WeblogConfigurationWizardController controller = new WeblogConfigurationWizardController(temporarySettings))
            {
                bool dummy;
                return(controller.AddWeblogSkipType(owner, ApplicationEnvironment.ProductNameQualified, false, out dummy));
            }
        }
        public static string AddBlog(IWin32Window owner, Uri blogToAdd)
        {
            TemporaryBlogSettings temporarySettings = TemporaryBlogSettings.CreateNew();

            temporarySettings.IsNewWeblog = true;
            temporarySettings.SwitchToWeblog = true;

            string username;
            string password;
            Uri homepageUrl;

            ParseAddBlogUri(blogToAdd, out username, out password, out homepageUrl);
            temporarySettings.HomepageUrl = homepageUrl.ToString();
            temporarySettings.Credentials.Username = username;
            temporarySettings.Credentials.Password = password;
            temporarySettings.SavePassword = false;

            using (WeblogConfigurationWizardController controller = new WeblogConfigurationWizardController(temporarySettings))
            {
                bool dummy;
                return controller.AddWeblogSkipType(owner, ApplicationEnvironment.ProductNameQualified, false, out dummy);
            }
        }
Esempio n. 7
0
 public static bool EditTemporarySettings(IWin32Window owner, TemporaryBlogSettings settings)
 {
     using (WeblogConfigurationWizardController controller = new WeblogConfigurationWizardController(settings))
         return(controller.EditWeblogTemporarySettings(owner));
 }
 public static bool EditTemporarySettings(IWin32Window owner, TemporaryBlogSettings settings)
 {
     using (WeblogConfigurationWizardController controller = new WeblogConfigurationWizardController(settings))
         return controller.EditWeblogTemporarySettings(owner);
 }