public static MenuFlowTransitionAction GetAction(MenuFlowTransitionStates transitionStates)
 {
     try {
         return(Transitions[transitionStates]);
     } catch (KeyNotFoundException) {
         throw new MenuFlowTransitionNotFoundException(transitionStates);
     }
 }
 public MenuFlowTransitionNotFoundException(MenuFlowTransitionStates states)
     : base(String.Format("Menu transition not found. From: {0:G} -> To: {1:G}", states.From, states.To))
 {
 }
示例#3
0
    private MenuFlowTransitionAction getTransitionAction(MenuState newState)
    {
        MenuFlowTransitionStates transitionStates = MenuFlowTransitionStatesBuilder.From(currentState).To(newState);

        return(MenuFlowTransitions.GetAction(transitionStates));
    }
 public static MenuFlowTransitionAction GetAction(MenuFlowTransitionStates transitionStates)
 {
     try {
         return Transitions[transitionStates];
     } catch (KeyNotFoundException) {
         throw new MenuFlowTransitionNotFoundException(transitionStates);
     }
 }
 public MenuFlowTransitionNotFoundException(MenuFlowTransitionStates states)
     : base(String.Format("Menu transition not found. From: {0:G} -> To: {1:G}", states.From, states.To))
 {
 }