void ResetCommandMethod() { //reset states to unhandled ApplyToVisitPurposeSelectionVMs(vp => vp.ResetState()); IoC.ExecuteTripViewModel.UpdateStateOfDestination(DestinationVM.Destination, true); FrameHistory.CloseFrame(); }
void FinishCommandMethod() { //set states based on their temporal values ApplyToVisitPurposeSelectionVMs(vp => vp.ApplyState()); IoC.ExecuteTripViewModel.UpdateStateOfDestination(DestinationVM.Destination); FrameHistory.CloseFrame(); //if there are further destinations to proceed with, re-open this frame IoC.ExecuteTripViewModel.ProceedWithNextDestination(); }
protected virtual void CloseCommandMethod() { FrameHistory.CloseFrame(); }