コード例 #1
0
        ///--------------------------------------------------------------------------------
        /// <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);
        }
コード例 #2
0
        private void transition_OnFinished(object sender, StateTransitionEventArgs e)
        {
            transition = null;
            ChangeNextState();

            if (OnTransitionFinished != null)
            {
                OnTransitionFinished(this, new MapStateManagerEventArgs(currentMapState, null));
            }
        }
コード例 #3
0
        ///--------------------------------------------------------------------------------
        /// <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);
        }
コード例 #4
0
        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;
        }
コード例 #5
0
 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";
     }
 }
コード例 #6
0
        ///--------------------------------------------------------------------------------
        /// <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);
        }
コード例 #7
0
 private void _stateTransitionStrategy_ChangeState(object sender, StateTransitionEventArgs e)
 {
     MoveToState(e.DesiredState);
 }
コード例 #8
0
 private void OnStateTransitionRequest(StateTransitionEventArgs e)
 {
     MoveToState(e.DesiredState);
 }
コード例 #9
0
 private void _workflow_StateMachineStarted(object sender, StateTransitionEventArgs e)
 {
     RefreshButtonAvailability();
 }
コード例 #10
0
 private void _workflow_StateInitialized(object sender, StateTransitionEventArgs e)
 {
     RefreshButtonAvailability();
 }
コード例 #11
0
ファイル: MapStateManager.cs プロジェクト: Jntz/jamipeli
        private void transition_OnFinished(object sender, StateTransitionEventArgs e)
        {
            transition = null;
            ChangeNextState();

            if (OnTransitionFinished != null)
            {
                OnTransitionFinished(this, new MapStateManagerEventArgs(currentMapState, null));
            }
        }
コード例 #12
0
 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);
 }