Ejemplo n.º 1
0
        public IInteractionCase CreateCase(string caseName)
        {
            InteractionCase interactionCase = new InteractionCase(this, caseName);

            _cases.Add(interactionCase);
            return(interactionCase);
        }
Ejemplo n.º 2
0
        public void DeleteCase(Guid caseGuid)
        {
            InteractionCase interactionCase = _cases.GetCase(caseGuid) as InteractionCase;

            if (interactionCase != null)
            {
                _cases.Remove(interactionCase);
            }
        }
Ejemplo n.º 3
0
        public void AddCase(IInteractionCase interactionCase, int index)
        {
            InteractionCase newCase = interactionCase as InteractionCase;

            if (newCase != null)
            {
                _cases.Insert(index, newCase);
                newCase.InteractionEvent = this;
            }
        }
Ejemplo n.º 4
0
        public bool MoveCase(Guid caseGuid, int delta)
        {
            InteractionCase interactionCase = _cases.GetCase(caseGuid) as InteractionCase;

            if (interactionCase != null)
            {
                return(_cases.MoveItem(interactionCase, delta));
            }

            return(false);
        }