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

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