Example #1
0
        public FolderCategoryNode(System.IO.DirectoryInfo dir, List <DataSourceFactory> Filter)
        {
            m_Filter = Filter;
            m_Dir    = dir;
            string strIcon = "folder";

            if (dir.Root.FullName == dir.FullName)
            {
                strIcon = "disk";
            }

            //创建物理节点
            CreateNode(m_Dir.Name, m_Dir.Name, strIcon);

            //添加站位节点。
            if (m_Dir.CanVisit())
            {
                AppendNode(ReplaceNode);
            }
        }