///-------------------------------------------------------------------------------- /// <summary>This method processes the delete StateTransition command.</summary> ///-------------------------------------------------------------------------------- public void ProcessDeleteStateTransitionCommand() { StateTransitionEventArgs message = new StateTransitionEventArgs(); message.StateTransition = StateTransition; message.ToStateID = ToStateID; message.Solution = Solution; message.WorkspaceID = WorkspaceID; Mediator.NotifyColleagues <StateTransitionEventArgs>(MediatorMessages.Command_DeleteStateTransitionRequested, message); }
private void transition_OnFinished(object sender, StateTransitionEventArgs e) { transition = null; ChangeNextState(); if (OnTransitionFinished != null) { OnTransitionFinished(this, new MapStateManagerEventArgs(currentMapState, null)); } }
///-------------------------------------------------------------------------------- /// <summary>This method sends the edit item performed message to have the /// update applied.</summary> ///-------------------------------------------------------------------------------- public void SendEditStateTransitionPerformed() { StateTransitionEventArgs message = new StateTransitionEventArgs(); message.StateTransition = StateTransition; message.ToStateID = ToStateID; message.Solution = Solution; message.WorkspaceID = WorkspaceID; Mediator.NotifyColleagues <StateTransitionEventArgs>(MediatorMessages.Command_EditStateTransitionPerformed, message); }
private void _currentState_ChangeState(object sender, StateTransitionEventArgs e) { // Unsubscribe from current state object ((ITestState)_currentState).ChangeState -= _currentState_ChangeState; MoveToState(e.DesiredState); // Subscribe to new state object ((ITestState)_currentState).ChangeState += _currentState_ChangeState; }
private void _currentWorkflow_StateInitialized(object sender, StateTransitionEventArgs e) { if (_currentWorkflow.CurrentState != null) { _currentStateName.Text = _currentWorkflow.CurrentState.StateName.ExpandAtCaseTransitions(); } else { _currentStateName.Text = "State Machine Not Started"; } }
///-------------------------------------------------------------------------------- /// <summary>This method processes the new StateTransition command.</summary> ///-------------------------------------------------------------------------------- public void ProcessNewStateTransitionCommand() { StateTransitionEventArgs message = new StateTransitionEventArgs(); message.StateTransition = new StateTransition(); message.StateTransition.StateTransitionID = Guid.NewGuid(); message.StateTransition.ToStateID = ToStateID; message.StateTransition.ToState = Solution.StateList.FindByID((Guid)ToStateID); message.StateTransition.Solution = Solution; message.ToStateID = ToStateID; message.Solution = Solution; message.WorkspaceID = WorkspaceID; Mediator.NotifyColleagues <StateTransitionEventArgs>(MediatorMessages.Command_EditStateTransitionRequested, message); }
private void _stateTransitionStrategy_ChangeState(object sender, StateTransitionEventArgs e) { MoveToState(e.DesiredState); }
private void OnStateTransitionRequest(StateTransitionEventArgs e) { MoveToState(e.DesiredState); }
private void _workflow_StateMachineStarted(object sender, StateTransitionEventArgs e) { RefreshButtonAvailability(); }
private void _workflow_StateInitialized(object sender, StateTransitionEventArgs e) { RefreshButtonAvailability(); }
private void InvokeOnTransition(object sender, StateTransitionEventArgs <IDomainEvent <TEntity> > args) { args.InputSymbol.Apply(Root); Root.Version = Math.Max(Root.Version, args.InputSymbol.Version); InvokeOnTransitionDomainEvent(args.InputSymbol); }