Widget GetNextPageWidget(SolutionTemplate template) { currentPage++; if (template.HasWizard) { wizard = controller.CreateTemplateWizard(template.Wizard); if (wizard != null) { WizardPage page = wizard.GetPage(currentPage); if (page != null) { return(page); } } } var config = new ProjectConfiguration() { Location = "~/Projects", ProjectFileExtension = ".csproj" }; projectConfigurationWidget.Load(config); return(projectConfigurationWidget); }
Widget GetPreviousPageWidget(Widget existingWidget) { currentPage--; if (existingWidget == projectConfigurationWidget) { if (wizard != null) { WizardPage page = wizard.GetPage(currentPage); if (page != null) { return(page); } } } wizard = null; return(templatesHBox); }