Exemplo n.º 1
0
 protected void PerformTransition(MachineTransition transition)
 {
     if (FState > 0 && OnTransition != null)
     {
         OnTransition(this, new TransitionEventArgs(transition));
     }
     State = transition.To;
 }
Exemplo n.º 2
0
 public TransitionEventArgs(MachineTransition transition)
     : base()
 {
     Transition = transition;
 }
Exemplo n.º 3
0
 public void AddTransition(MachineTransition transition)
 {
     Transitions[FindState(transition.From)].Add(transition);
 }