ssg: WizardController: integrate Paths2 panel
This commit is contained in:
parent
26a9b06229
commit
cfc8143d6d
|
@ -534,22 +534,13 @@ namespace OpenLiveWriter.PostEditor.Configuration.Wizard
|
||||||
addWizardSubStep(
|
addWizardSubStep(
|
||||||
new WizardSubStep(new WeblogConfigurationWizardPanelStaticSitePaths1(),
|
new WizardSubStep(new WeblogConfigurationWizardPanelStaticSitePaths1(),
|
||||||
null,
|
null,
|
||||||
new DisplayCallback(OnStaticSitePaths1Displayed),
|
new DisplayCallback(OnStaticSiteConfigProviderDisplayed),
|
||||||
new VerifyStepCallback(OnValidatePanel),
|
new VerifyStepCallback(OnValidatePanel),
|
||||||
new NextCallback(OnStaticSitePaths1Completed),
|
new NextCallback(OnStaticSitePaths1Completed),
|
||||||
null,
|
null,
|
||||||
new BackCallback(OnStaticSiteBack)));
|
new BackCallback(OnStaticSiteBack)));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnStaticSitePaths1Displayed(Object stepControl)
|
|
||||||
{
|
|
||||||
// Populate data
|
|
||||||
var panel = (stepControl as WeblogConfigurationWizardPanelStaticSitePaths1);
|
|
||||||
|
|
||||||
// Load panel values from config
|
|
||||||
panel.LoadFromConfig(staticSiteConfig);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnStaticSitePaths1Completed(Object stepControl)
|
private void OnStaticSitePaths1Completed(Object stepControl)
|
||||||
{
|
{
|
||||||
var panel = (stepControl as WeblogConfigurationWizardPanelStaticSitePaths1);
|
var panel = (stepControl as WeblogConfigurationWizardPanelStaticSitePaths1);
|
||||||
|
@ -557,6 +548,29 @@ namespace OpenLiveWriter.PostEditor.Configuration.Wizard
|
||||||
// Save panel values into config
|
// Save panel values into config
|
||||||
panel.SaveToConfig(staticSiteConfig);
|
panel.SaveToConfig(staticSiteConfig);
|
||||||
|
|
||||||
|
// Go to next step
|
||||||
|
AddStaticSitePaths2SubStep();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void AddStaticSitePaths2SubStep()
|
||||||
|
{
|
||||||
|
addWizardSubStep(
|
||||||
|
new WizardSubStep(new WeblogConfigurationWizardPanelStaticSitePaths2(),
|
||||||
|
null,
|
||||||
|
new DisplayCallback(OnStaticSiteConfigProviderDisplayed),
|
||||||
|
new VerifyStepCallback(OnValidatePanel),
|
||||||
|
new NextCallback(OnStaticSitePaths2Completed),
|
||||||
|
null,
|
||||||
|
new BackCallback(OnStaticSiteBack)));
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnStaticSitePaths2Completed(Object stepControl)
|
||||||
|
{
|
||||||
|
var panel = (stepControl as WeblogConfigurationWizardPanelStaticSitePaths2);
|
||||||
|
|
||||||
|
// Save panel values into config
|
||||||
|
panel.SaveToConfig(staticSiteConfig);
|
||||||
|
|
||||||
// Go to next step
|
// Go to next step
|
||||||
PerformStaticSiteWizardCompletion();
|
PerformStaticSiteWizardCompletion();
|
||||||
}
|
}
|
||||||
|
@ -583,6 +597,15 @@ namespace OpenLiveWriter.PostEditor.Configuration.Wizard
|
||||||
staticSiteConfig.SaveToCredentials(_temporarySettings.Credentials);
|
staticSiteConfig.SaveToCredentials(_temporarySettings.Credentials);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void OnStaticSiteConfigProviderDisplayed(Object stepControl)
|
||||||
|
{
|
||||||
|
// Populate data
|
||||||
|
var panel = (stepControl as IWizardPanelStaticSiteConfigProvider);
|
||||||
|
|
||||||
|
// Load panel values from config
|
||||||
|
panel.LoadFromConfig(staticSiteConfig);
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Weblog and Settings Auto Detection
|
#region Weblog and Settings Auto Detection
|
||||||
|
|
Loading…
Reference in New Issue