示例#1
0
        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();
                }
        }
示例#2
0
        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();
        }
示例#3
0
 protected void UpdateForm(WizardingTools.WizardPanel panel)
 {
     this.titleLabel.Text = panel.Title;
     this.descriptionLabel.Text = panel.Description;
 }