예제 #1
0
        public IInteractionCase CreateCase(string caseName)
        {
            InteractionCase interactionCase = new InteractionCase(this, caseName);

            _cases.Add(interactionCase);
            return(interactionCase);
        }
예제 #2
0
        public void DeleteCase(Guid caseGuid)
        {
            InteractionCase interactionCase = _cases.GetCase(caseGuid) as InteractionCase;

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

            if (newCase != null)
            {
                _cases.Insert(index, newCase);
                newCase.InteractionEvent = this;
            }
        }
예제 #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);
        }