Ejemplo n.º 1
0
        public void RemoveChildItem(StoryBlockBase item)
        {
            ChildItemList.Remove(item);
            item.ParentItem = null;

            ChildRemoved?.Invoke(item, this);
        }
Ejemplo n.º 2
0
        public void InsertChildItem(int index, StoryBlockBase item)
        {
            ChildItemList.Insert(index, item);
            item.ParentItem = this;

            ChildInserted?.Invoke(index, item);
        }
Ejemplo n.º 3
0
        public void RemoveStoryBlockItem(StoryBlockBase item)
        {
            if (item is StoryClip)
            {
                foreach (StoryBlockBase childItem in ((StoryClip)item).ChildItemList)
                {
                    RemoveStoryBlockItem(childItem);
                }
            }

            StoryClip parentItem = item.ParentItem;

            parentItem.ChildItemList.Remove(item);

            ItemRemoved?.Invoke(item, parentItem);
        }
Ejemplo n.º 4
0
 public void AddChildItem(StoryBlockBase item)
 {
     InsertChildItem(ChildItemList.Count, item);
 }