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)); }
/// <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)))); }
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)))); }