Esempio n. 1
0
        new public static ReplaceBlocksItem Create <T>(string text)
        {
            ReplaceBlocksItem result = new ReplaceBlocksItem(
                text,
                BlockActivatorFactory.Types <T>()
                );

            return(result);
        }
        public ReplaceBlocksItem AddReplaceBlocksItem <T1, T2, T3>(
            string itemTitle)
        {
            ReplaceBlocksItem item = new ReplaceBlocksItem(
                itemTitle,
                BlockActivatorFactory.Types <T1, T2, T3>()
                );

            Items.Add(item);
            return(item);
        }
        public ReplaceBlocksItem AddReplaceBlocksItem(
            string itemTitle,
            IEnumerable <Type> typesOfBlocksToInsert)
        {
            ReplaceBlocksItem item = new ReplaceBlocksItem(
                itemTitle,
                typesOfBlocksToInsert
                );

            Items.Add(item);
            return(item);
        }