protected void GoBackward(WizardingTools.WizardPanel panel) { if (panel != null) if (panel.PreviousePanel != null) { panel.Visible = false; panel.PreviousePanel.Visible = true; this.ActivePanel = panel.PreviousePanel; UpdateForm(); } }
protected void GoForward(WizardingTools.WizardPanel currentPanel, WizardingTools.WizardPanel nextPanel) { nextPanel.PreviousePanel = currentPanel; this.ActivePanel = nextPanel; if (currentPanel != null) currentPanel.Visible = false; nextPanel.Visible = true; nextPanel.Load(); if (this.ActivePanel != null) UpdateForm(); }
protected void UpdateForm(WizardingTools.WizardPanel panel) { this.titleLabel.Text = panel.Title; this.descriptionLabel.Text = panel.Description; }