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; _temporarySettings.IsGoogleBloggerBlog = panelBlogType.IsGoogleBloggerBlog; // did this bootstrap a custom account wizard? _providerAccountWizard = panelBlogType.ProviderAccountWizard; // add the next wizard sub step as appropriate if (_temporarySettings.IsSharePointBlog) { AddSharePointBasicInfoSubStep(false); } else if (_temporarySettings.IsGoogleBloggerBlog) { AddGoogleBloggerOAuthSubStep(); } else { AddBasicInfoSubStep(); } }
private void OnChooseBlogTypeDisplayed(Object stepControl) { // Fixes for 483356: In account configuration wizard, hitting back in select provider or success screens causes anomalous behavior // Need to clear cached credentials and cached blogname otherwise they'll be used downstream in the wizard... ClearTransientCredentials(); _temporarySettings.BlogName = string.Empty; // Bug 681904: Insure that the next and cancel are always available when this panel is displayed. NextEnabled = true; CancelEnabled = true; // get reference to panel WeblogConfigurationWizardPanelBlogType panelBlogType = stepControl as WeblogConfigurationWizardPanelBlogType; // notify it that it is being displayed (reset dirty state) panelBlogType.OnDisplayPanel(); }