예제 #1
0
  /// <summary>Called when the current <see cref="WizardStep"/> changes.</summary>
  protected virtual void OnStepChanged(EventArgs e)
  {
    foreach(Control control in stepContainer.Controls)
    {
      if(control.Visible) control.Visible = false;
    }

    EnableNextButton = true;
    UpdateButtons();

    if(CurrentStepIndex != -1) CurrentStep.Visible = true;

    if(StepChanged != null) StepChanged(this, e);
    if(CurrentStepIndex != -1) CurrentStep.OnStepDisplayed(e);
  }