Beispiel #1
0
 private bool CanBeMovedTo(PageflowStep step)
 {
     return(!_isComplete &&
            (step.Name == _currentStep.Name ||
             step.HasExecuted ||
             step.IsAvailable));
 }
Beispiel #2
0
 protected abstract PageflowStep MoveToPrevious(PageflowStep currentStep);
Beispiel #3
0
 protected abstract PageflowStep MoveToNext(PageflowStep currentStep);
Beispiel #4
0
 void IPageflow.MoveTo(string step)
 {
     _currentStep.HasExecuted = true;
     _currentStep             = (from s in _steps where s.Name == step select s).Single();
 }
Beispiel #5
0
 void IPageflow.MoveToPrevious()
 {
     _currentStep.HasExecuted = true;
     _currentStep             = MoveToPrevious(_currentStep);
 }
Beispiel #6
0
 void IPageflow.MoveToNext()
 {
     _currentStep.HasExecuted = true;
     _currentStep             = MoveToNext(_currentStep);
 }
Beispiel #7
0
 void IPageflow.MoveFirst()
 {
     _steps       = GetSteps();
     _currentStep = _steps[0];
 }