public void DeleteAction(Guid actionGuid) { InteractionAction action = _actions.GetAction(actionGuid) as InteractionAction; if (action != null) { _actions.Remove(action); } }
public void AddAction(IInteractionAction action, int index) { InteractionAction newAction = action as InteractionAction; if (newAction != null) { _actions.Insert(index, newAction); newAction.InteractionCase = this; } }
public IInteractionAction CreateAction(ActionType actionType) { InteractionAction action = InteractionActionFactory.CreateAction(this, actionType); if (action != null) { _actions.Add(action); } return(action); }
public bool MoveAction(Guid actionGuid, int delta) { InteractionAction action = _actions.GetAction(actionGuid) as InteractionAction; if (action != null) { return(_actions.MoveItem(action, delta)); } return(false); }