protected virtual void OnBackButtonClick(object sender, EventArgs e) { if (CurrentStepIndex == 0) { return; } if (DesignMode) { CurrentStepIndex--; return; } if (BackButtonClick == null) { int backStepIndex = WizardSteps[CurrentStepIndex].BackStepIndex; if (backStepIndex != -1) { CurrentStepIndex = backStepIndex; return; } CurrentStepIndex--; return; } else { WizardClickEventArgs args = new WizardClickEventArgs(); BackButtonClick(this, args); if (args.Cancel) { return; } int num = WizardSteps[CurrentStepIndex].BackStepIndex; if (num != -1) { CurrentStepIndex = num; return; } CurrentStepIndex--; return; } }
protected virtual void OnBackButtonClick(object sender, EventArgs e) { if (CurrentStepIndex == 0) { return; } if (DesignMode) { CurrentStepIndex--; return; } if (BackButtonClick == null) { int backStepIndex = WizardSteps[CurrentStepIndex].BackStepIndex; if (backStepIndex != -1) { CurrentStepIndex = backStepIndex; return; } CurrentStepIndex--; return; } else { WizardClickEventArgs args = new WizardClickEventArgs(); BackButtonClick(this, args); if (args.Cancel) { return; } int num = WizardSteps[CurrentStepIndex].BackStepIndex; if (num != -1) { CurrentStepIndex = num; return; } CurrentStepIndex--; return; } }