Esempio n. 1
0
 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))
 {
 }
Esempio n. 3
0
    private MenuFlowTransitionAction getTransitionAction(MenuState newState)
    {
        MenuFlowTransitionStates transitionStates = MenuFlowTransitionStatesBuilder.From(currentState).To(newState);

        return(MenuFlowTransitions.GetAction(transitionStates));
    }
Esempio n. 4
0
 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))
 {
 }