Example #1
0
 private void OpenBlock(IStoryboardItem item)
 {
     blocks.Push(currentBlock);
     if (item.Block == null)
     {
         throw new InvalidOperationException();
     }
     Add(item);
     currentBlock = item.Block;
 }
Example #2
0
    private void StoreContextChangingItem(IStoryboardItem item)
    {
        var type = item.GetType();

        for (var n = 0; n < contextItems.Count; n++)
        {
            if (contextItems[n].GetType() == type)
            {
                contextItems[n] = item;
                return;
            }
        }
        contextItems.Add(item);
    }
Example #3
0
 private void Add(IStoryboardItem item) => currentBlock.ForwardQueue.Enqueue(item);
Example #4
0
 public static T GetSingle <T>(this IStoryboardItem item) where T : IStoryboardItem
 => Get <T>(item.Block, true);
Example #5
0
 public static T Get <T>(this IStoryboardItem item) where T : IStoryboardItem
 => Get <T>(item.Block, false);