예제 #1
0
        public object BuildItem(string path, object parameter, IEnumerable <ICondition> additionalConditions)
        {
            int           pos    = path.LastIndexOf('/');
            string        parent = path.Substring(0, pos);
            string        child  = path.Substring(pos + 1);
            AddInTreeNode node   = GetTreeNode(parent);

            return(node.BuildChildItem(child, parameter, additionalConditions));
        }
예제 #2
0
        /// <summary>
        /// Builds a single item in the addin tree.
        /// </summary>
        /// <param name="path">A path to the item in the addin tree.</param>
        /// <param name="caller">The owner used to create the objects.</param>
        /// <exception cref="TreePathNotFoundException">The path does not
        /// exist or does not point to an item.</exception>
        public static object BuildItem(string path, object caller)
        {
            int           pos    = path.LastIndexOf('/');
            string        parent = path.Substring(0, pos);
            string        child  = path.Substring(pos + 1);
            AddInTreeNode node   = GetTreeNode(parent);

            return(node.BuildChildItem(child, caller, new ArrayList(BuildItems <object>(path, caller, false))));
        }
예제 #3
0
        public static object BuildItem(string path, object caller)
        {
            int           num         = path.LastIndexOf('/');
            string        path2       = path.Substring(0, num);
            string        childItemID = path.Substring(num + 1);
            AddInTreeNode treeNode    = AddInTree.GetTreeNode(path2);

            return(treeNode.BuildChildItem(childItemID, caller, new System.Collections.ArrayList(AddInTree.BuildItems <object>(path, caller, false))));
        }