void InstantiateCompleteWizardStep (CompleteWizardStep step) { CompleteStepContainer contentTemplateContainer = new CompleteStepContainer (this); if (step.ContentTemplate != null) { step.ContentTemplate.InstantiateIn (contentTemplateContainer.InnerCell); } else { new CompleteStepTemplate (this).InstantiateIn (contentTemplateContainer.InnerCell); contentTemplateContainer.ConfirmDefaultTemplate (); } step.ContentTemplateContainer = contentTemplateContainer; step.Controls.Clear (); step.Controls.Add (contentTemplateContainer); BaseWizardNavigationContainer customNavigationTemplateContainer = new BaseWizardNavigationContainer (); if (step.CustomNavigationTemplate != null) { step.CustomNavigationTemplate.InstantiateIn (customNavigationTemplateContainer); RegisterCustomNavigation (step, customNavigationTemplateContainer); } step.CustomNavigationTemplateContainer = customNavigationTemplateContainer; }
internal void RegisterCustomNavigation (TemplatedWizardStep step, BaseWizardNavigationContainer customNavigationTemplateContainer) { if (customNavigation == null) customNavigation = new Hashtable (); customNavigation [step] = customNavigationTemplateContainer; }
static void AddNavButtonsTable (BaseWizardNavigationContainer container, out TableRow row) { Table t = new Table (); t.CellPadding = 5; t.CellSpacing = 5; row = new TableRow (); t.Rows.Add (row); container.Controls.Add (t); }
internal virtual void InstantiateTemplateStep(TemplatedWizardStep step) { BaseWizardContainer contentTemplateContainer = new BaseWizardContainer (); if (step.ContentTemplate != null) step.ContentTemplate.InstantiateIn (contentTemplateContainer.InnerCell); step.ContentTemplateContainer = contentTemplateContainer; step.Controls.Clear (); step.Controls.Add (contentTemplateContainer); BaseWizardNavigationContainer customNavigationTemplateContainer = new BaseWizardNavigationContainer (); if (step.CustomNavigationTemplate != null) { step.CustomNavigationTemplate.InstantiateIn (customNavigationTemplateContainer); RegisterCustomNavigation (step, customNavigationTemplateContainer); } step.CustomNavigationTemplateContainer = customNavigationTemplateContainer; }