Example #1
0
 private void HandleSourceStateChanged(object sender, StateEnteredEventArgs <TState> args)
 {
     if (!_filterState.HasValue || args.State.Equals(_filterState.Value))
     {
         Trip(sender, args);
     }
 }
Example #2
0
        internal static StateEnteredEventArgs <TState> ToStateEnteredArgs <TState>(this StateEnteredEventArgs args) where TState : struct
        {
            var stateArgs = new StateEnteredEventArgs <TState>()
            {
                State          = args.State.ToEnum <TState>(),
                TransitionArgs = args.TransitionArgs == null ? new TransitionEventArgs() : args.TransitionArgs
            };

            return(stateArgs);
        }
Example #3
0
        internal static StateEnteredEventArgs ToIStateEnteredArgs(this Transition transition, TripEventArgs internalArgs)
        {
            var stateArgs = new StateEnteredEventArgs()
            {
                State          = transition.To,
                TransitionArgs = transition.ToTransitionArgs(internalArgs)
            };

            return(stateArgs);
        }
Example #4
0
 private void State_EntryInitiated(object sender, StateEnteredEventArgs e)
 {
 }
Example #5
0
 private void State_EntryCompleted(object sender, StateEnteredEventArgs e)
 {
 }
 private void HandleEnteringState(object sender, StateEnteredEventArgs args)
 {
     Select();
 }
Example #7
0
 protected virtual void RaiseEntered(StateEnteredEventArgs args)
 {
     Entered?.Invoke(this, args);
 }
Example #8
0
 private void HandleStateEntered(object sender, StateEnteredEventArgs args)
 {
     Trip(sender, args);
 }