示例#1
0
        public static WizardState ReduceWizardFirstOnAction(WizardState state, WizardFirstOnAction action)
        {
            StepState[] stepStates = new StepState[]
            {
                new StepState()
                {
                    Visible = true
                },
                new StepState()
                {
                    Visible = false
                },
                new StepState()
                {
                    Visible = false
                }
            };

            List <StepState> states = new List <StepState>();

            states.AddRange(stepStates);

            return(new WizardState(states));
        }
示例#2
0
        protected override WizardState GetInitialState()
        {
            StepState [] stepStates = new StepState[]
            {
                new StepState()
                {
                    Visible = true
                },
                new StepState()
                {
                    Visible = false
                },
                new StepState()
                {
                    Visible = true
                }
            };

            List <StepState> states = new List <StepState>();

            states.AddRange(stepStates);

            return(new WizardState(states));
        }