/// <summary> /// Populates the <see cref="ActiveStep"/> the Sets the passed in <see cref="WizardStep"/> instance as the /// </summary> /// <param name="step">The WizardStep</param> protected internal void SetActive(WizardStep step) { ActiveStep = step ?? throw new ArgumentNullException(nameof(step)); ActiveStepIx = StepsIndex(step); if (ActiveStepIx == Steps.Count - 1) { IsLastStep = true; } else { IsLastStep = false; } }
/// <summary> /// Adds a <see cref="WizardStep"/> to the WizardSteps list /// </summary> /// <param name="step"></param> protected internal void AddStep(WizardStep step) { Steps.Add(step); }
/// <summary> /// Retrieves the index of the current <see cref="WizardStep"/> in the Step List /// </summary> /// <param name="step">The WizardStep</param> /// <returns></returns> public int StepsIndex(WizardStep step) => StepsIndexInternal(step);