コード例 #1
0
ファイル: Wizard.razor.cs プロジェクト: CD1010/BlazorWizard
        /// <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;
            }
        }
コード例 #2
0
ファイル: Wizard.razor.cs プロジェクト: CD1010/BlazorWizard
 /// <summary>
 /// Adds a <see cref="WizardStep"/> to the WizardSteps list
 /// </summary>
 /// <param name="step"></param>
 protected internal void AddStep(WizardStep step)
 {
     Steps.Add(step);
 }
コード例 #3
0
ファイル: Wizard.razor.cs プロジェクト: CD1010/BlazorWizard
 /// <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);