Beispiel #1
0
        public TheVM()
        {
            CurrentState = Factory.GetInitialState();
            CurrentState.Activate();

            MoveNextCommand = new RelayCommand(MoveNext);

            MoveBackCommand = new RelayCommand(MoveBack);

            MoveFinishCommand = new RelayCommand(MoveFinish);
        }
Beispiel #2
0
        public OrderState MoveFinish()
        {
            if (Finish != null)
            {
                AddToPayment();
                Finish.Activate();
                return(Finish);
            }

            return(null);
        }
Beispiel #3
0
        public OrderState MoveNext()
        {
            if (Next != null)
            {
                AddToPayment();
                Next.Activate();

                return(Next);
            }

            return(null);
        }
Beispiel #4
0
        public OrderState MoveBack()
        {
            if (Back != null)
            {
                ReduceFromPayment();
                Back.Activate();

                return(Back);
            }

            return(null);
        }