예제 #1
0
        public void DeleteAction(Guid actionGuid)
        {
            InteractionAction action = _actions.GetAction(actionGuid) as InteractionAction;

            if (action != null)
            {
                _actions.Remove(action);
            }
        }
예제 #2
0
        public void AddAction(IInteractionAction action, int index)
        {
            InteractionAction newAction = action as InteractionAction;

            if (newAction != null)
            {
                _actions.Insert(index, newAction);
                newAction.InteractionCase = this;
            }
        }
예제 #3
0
        public IInteractionAction CreateAction(ActionType actionType)
        {
            InteractionAction action = InteractionActionFactory.CreateAction(this, actionType);

            if (action != null)
            {
                _actions.Add(action);
            }
            return(action);
        }
예제 #4
0
        public bool MoveAction(Guid actionGuid, int delta)
        {
            InteractionAction action = _actions.GetAction(actionGuid) as InteractionAction;

            if (action != null)
            {
                return(_actions.MoveItem(action, delta));
            }

            return(false);
        }