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); }
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 ); }