Esempio n. 1
0
        //-------------------------------------------------
        // CData - Constructor
        //
        // The constructor is responsible for constructing
        // the nodes that will be displayed in the snapin
        //-------------------------------------------------
        public CData()
        {
            if (m_rn != null)
            {
                throw new Exception(CResourceStore.GetString("CData::OnlyOneInstanceofSnapin"));
            }

            // First, null out all the member variables
            m_Component       = new ArrayList();
            m_ucsole          = null;
            m_ucsoleNameSpace = null;

            m_rn = new CRootNode();
            // Register ourselves with the Node Manager
            CNodeManager.Data = this;

            // Let's generate our own computer node
            CNodeManager.Init();
            CNodeManager.RootNodeCookie = CNodeManager.AddNode(ref m_rn);
        }// CData