Summary description for CategoryCount.
示例#1
0
        CategoryStats(Element elem)
        {
            if (elem.Category == null) // some elements don't belong to a category
            {
                return;
            }

            CategoryCount tmpNode = FindCategoryNode(elem.Category);

            if (tmpNode == null)
            {
                tmpNode            = new CategoryCount();
                tmpNode.m_category = elem.Category;
                m_categoryCounts.Add(tmpNode);
            }

            tmpNode.m_objs.Add(elem);
        }
示例#2
0
        private void CategoryStats( Element elem )
        {
            if( elem.Category == null )  // some elements don't belong to a category
            return;

              CategoryCount tmpNode = FindCategoryNode( elem.Category );
              if( tmpNode == null )
              {
            tmpNode = new CategoryCount();
            tmpNode.m_category = elem.Category;
            m_categoryCounts.Add( tmpNode );
              }

              tmpNode.m_objs.Add( elem );
        }