Пример #1
0
        public static void Add(this IComponentTree tree, ITvContainer container)
        {
            var layoutManager = tree.Layouts() as LayoutManager;

            layoutManager.Add(container);
            tree.Add(container.AsComponent());
        }
Пример #2
0
        public static bool Remove(this IComponentTree tree, ITvContainer container)
        {
            var removed = tree.Remove(container.AsComponent());

            if (removed)
            {
                var layoutManager = tree.Layouts() as LayoutManager;
                layoutManager.Remove(container);
            }

            return(removed);
        }