private int StepsIndexInternal(FormWizardStep step) { if (step == null) { throw new ArgumentNullException(nameof(step)); } return(_steps.IndexOf(step)); }
private void SetActive(FormWizardStep step) { ActiveStep = step ?? throw new ArgumentNullException(nameof(step)); ActiveStepIndex = StepsIndex(step); if (ActiveStepIndex == _steps.Count - 1) { IsLastStep = true; } else { IsLastStep = false; } }
protected internal void AddStep(FormWizardStep step) { _steps.Add(step); }
public int StepsIndex(FormWizardStep step) => StepsIndexInternal(step);