}// CreatePropertyPages //------------------------------------------------- // CreateChildren // // This function creates the node's children, registers // the nodes with the node manager, and places the node's // cookies in it's child array //------------------------------------------------- internal override void CreateChildren() { CNode node = null; int iCookie = 0; bool fNonMMC = CNodeManager.Console is INonMMCHost; // Some of these nodes we shouldn't add if we're not MMC // This node is only valid on the local machine if (Data == 1 && !fNonMMC) { node = new CSharedAssemblies(); iCookie = CNodeManager.AddNode(ref node); AddChild(iCookie); } if (!fNonMMC) { // Now add a Version Policy node node = new CVersionPolicy(); iCookie = CNodeManager.AddNode(ref node); AddChild(iCookie); // Now add a Subscribed services node node = new CRemoting(); iCookie = CNodeManager.AddNode(ref node); AddChild(iCookie); } // Add a Security policy node node = new CGenSecurity(); iCookie = CNodeManager.AddNode(ref node); AddChild(iCookie); // And add an Applications Node node = new CGenApplications(); iCookie = CNodeManager.AddNode(ref node); AddChild(iCookie); } // CreateChildren
}// AppDependsNode //------------------------------------------------- // CreateChildren // // An application node has a binding policy node and a // subscribed services node //------------------------------------------------- internal override void CreateChildren() { CNode node = null; int iCookie = -1; // We'll only give an application depends node if we have an app file if (m_appInfo.sAppFile.Length > 0) { // add a application depencies node node = new CApplicationDepends(m_appInfo.sAppFile); iCookie = CNodeManager.AddNode(ref node); AddChild(iCookie); } // Now add a Version Policy node node = new CVersionPolicy(m_appInfo.sAppConfigFile); iCookie = CNodeManager.AddNode(ref node); AddChild(iCookie); // Now add a Remoting node node = new CRemoting(m_appInfo.sAppConfigFile); iCookie = CNodeManager.AddNode(ref node); AddChild(iCookie); }// CreateChildren