Beispiel #1
0
        public void RegisterStep(MWizardStep pStep)
        {
            if (mSteps.Any(s => s.Identifier == pStep.Identifier))
            {
                return;
            }

            mSteps.Add(pStep);

            if (CurrentStep == -1 && pStep.IsVisible)
            {
                CurrentStep = mSteps.Count - 1;
            }

            StateHasChanged();
        }
Beispiel #2
0
        public void RegisterStep(MWizardStep pStep)
        {
            if (WizardSteps.Any(s => s.Identifier == pStep.Identifier))
            {
                return;
            }

            WizardSteps.Add(pStep);
            WizardSteps = WizardSteps.OrderBy(s => s.Position).ToList();

            if (CurrentStep == -1 && pStep.IsVisible)
            {
                CurrentStep = WizardSteps.Count - 1;
            }

            StateHasChanged();
        }