Exemplo n.º 1
0
        void MoveToPreviousStep()
        {
            if (CanMoveToPreviousStep)
            {
                ServiceLocator.Current.GetInstance <IEventAggregator>().GetEvent <WizardBackEvent>().Publish(EventArgs.Empty);

                CurrentLinkedListStep = CurrentLinkedListStep.Previous;

                _stepManager.ReworkListBasedOn(CurrentLinkedListStep.Value.ViewModel.OnNext());
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Note that currently, the step OnNext handler is only called when moving next; not when moving previous.
        /// </summary>
        void MoveToNextStep()
        {
            if (!CanMoveToNextStep)
            {
                return;
            }

            _stepManager.ReworkListBasedOn(CurrentLinkedListStep.Value.ViewModel.OnNext());
            CurrentLinkedListStep = CurrentLinkedListStep.Next;
            //CurrentLinkedListStep.Value.ViewModel.BeforeShow();
            CurrentLinkedListStep.Value.Visited = true;
        }