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(); }
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(); }