internal void RegisterPanel(WizardPanel panel)
 {
     if (!base.TaskPanel.Controls.Contains(panel))
     {
         panel.Dock = DockStyle.Fill;
         panel.SetParentWizard(this);
         panel.Hide();
         base.TaskPanel.Controls.Add(panel);
     }
 }
 public void PreviousPanel()
 {
     if (this._panelHistory.Count > 1)
     {
         WizardPanel currentPanel = this._panelHistory.Pop();
         WizardPanel panel        = this._panelHistory.Peek();
         currentPanel.OnPrevious();
         currentPanel.Hide();
         this.OnPanelChanging(new WizardPanelChangingEventArgs(currentPanel));
         this.ShowPanel(panel);
     }
 }
        public void NextPanel()
        {
            WizardPanel currentPanel = this._panelHistory.Peek();

            if (currentPanel.OnNext())
            {
                currentPanel.Hide();
                WizardPanel nextPanel = currentPanel.NextPanel;
                if (nextPanel != null)
                {
                    this.RegisterPanel(nextPanel);
                    this._panelHistory.Push(nextPanel);
                    this.OnPanelChanging(new WizardPanelChangingEventArgs(currentPanel));
                    this.ShowPanel(nextPanel);
                }
            }
        }
 internal void RegisterPanel(WizardPanel panel)
 {
     if (!base.TaskPanel.Controls.Contains(panel))
     {
         panel.Dock = DockStyle.Fill;
         panel.SetParentWizard(this);
         panel.Hide();
         base.TaskPanel.Controls.Add(panel);
     }
 }