private void SetStep(int index) { UpdateWizardState(); if (currentStep != null) { stepPanel.Controls.Remove(currentStep); } currentStepIndex = index; currentStep = steps[index]; currentStep.ReportWizardState = currentState; stepPanel.Controls.Add(currentStep); currentStep.OnDisplay(); stepTitle.Text = currentStep.Title; stepDescription.Text = currentStep.Description; UpdateNavigationButtons(); }