public static Node GetNavigationNode(string strID, string strNamespace) { NodeCollection objNodes = GetNavigationNodes(strNamespace); Node objNode = objNodes.FindNode(strID); NodeCollection objReturnNodes = new NodeCollection(strNamespace); objReturnNodes.Import(objNode); objReturnNodes[0].ID = strID; return objReturnNodes[0]; }
public static Node GetActionNode(string strID, string strNamespace, ModuleAction objActionRoot, Control objControl) { NodeCollection objNodes = GetActionNodes(objActionRoot, objControl, -1); Node objNode = objNodes.FindNode(strID); NodeCollection objReturnNodes = new NodeCollection(strNamespace); objReturnNodes.Import(objNode); objReturnNodes[0].ID = strID; return objReturnNodes[0]; }