Exemplo n.º 1
0
        private void _changeDisplayToCurrentStage()
        {
            if (_currentStage != null)
                _currentStage.WizardStageChanged -= CurrentStage_WizardStageChanged;
            panelContent.Controls.Clear();

            _currentStage = _wizard.CurrentStage;

            panelContent.Controls.Add(_currentStage);
            _currentStage.WizardStageChanged += CurrentStage_WizardStageChanged;

            buttonNext.Text = _wizard.IsFinalStage ? "Finish" : "Next >>";

            _updateButtons();
        }
Exemplo n.º 2
0
        private void _changeDisplayToCurrentStage()
        {
            if (_currentStage != null)
            {
                _currentStage.WizardStageChanged -= CurrentStage_WizardStageChanged;
            }
            panelContent.Controls.Clear();

            _currentStage = _wizard.CurrentStage;

            panelContent.Controls.Add(_currentStage);
            _currentStage.WizardStageChanged += CurrentStage_WizardStageChanged;

            buttonNext.Text = _wizard.IsFinalStage ? "Finish" : "Next >>";

            _updateButtons();
        }