/// <summary> /// Goes forward to the next import step. /// </summary> public void NextStep() { if (!IsLastStep()) { if (CurrentStep.OnNextStep()) { CurrentStep = _steps[GetStepIndex() + 1]; CurrentStep.OnEnterStep(); } } else if (Finished != null) { Finished(this, new EventArgs()); } }
/// <summary> /// Goes back to the previous import step. /// </summary> public void PreviousStep() { CurrentStep.OnPreviousStep(); if (GetStepIndex() > 0) { while (GetStepIndex() > 0) { CurrentStep = _steps[GetStepIndex() - 1]; if (!CurrentStep.SkipOnPrevious) { break; } } CurrentStep.OnEnterStep(); } else if (Cancel != null) { Cancel(this, new EventArgs()); } }