Exemple #1
0
        private int StepsIndexInternal(FormWizardStep step)
        {
            if (step == null)
            {
                throw new ArgumentNullException(nameof(step));
            }

            return(_steps.IndexOf(step));
        }
Exemple #2
0
        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;
            }
        }
Exemple #3
0
 protected internal void AddStep(FormWizardStep step)
 {
     _steps.Add(step);
 }
Exemple #4
0
 public int StepsIndex(FormWizardStep step) => StepsIndexInternal(step);