protected override void Initialize()
        {
            Nodes.Clear();
            foreach (string namespaceName in module.RootNamespaces)
            {
                CodeCoverageNamespaceTreeNode node = new CodeCoverageNamespaceTreeNode(namespaceName, CodeCoverageMethod.GetAllMethods(module.Methods, namespaceName));
                node.AddTo(this);
            }

            // Add any classes that have no namespace.
            foreach (string className in CodeCoverageMethod.GetClassNames(module.Methods, String.Empty))
            {
                CodeCoverageClassTreeNode classNode = new CodeCoverageClassTreeNode(className, CodeCoverageMethod.GetMethods(module.Methods, String.Empty, className));
                classNode.AddTo(this);
            }

            // Sort these nodes.
            SortChildNodes();
        }
        protected override void Initialize()
        {
            Nodes.Clear();

            // Add namespace nodes.
            string fullNamespace = CodeCoverageMethod.GetFullNamespace(namespacePrefix, Name);

            foreach (string namespaceName in CodeCoverageMethod.GetChildNamespaces(Methods, fullNamespace))
            {
                string childFullNamespace          = CodeCoverageMethod.GetFullNamespace(fullNamespace, namespaceName);
                CodeCoverageNamespaceTreeNode node = new CodeCoverageNamespaceTreeNode(fullNamespace, namespaceName, CodeCoverageMethod.GetAllMethods(Methods, childFullNamespace));
                node.AddTo(this);
            }

            // Add class nodes for this namespace.
            foreach (string className in CodeCoverageMethod.GetClassNames(Methods, fullNamespace))
            {
                CodeCoverageClassTreeNode classNode = new CodeCoverageClassTreeNode(className, CodeCoverageMethod.GetMethods(Methods, fullNamespace, className));
                classNode.AddTo(this);
            }

            // Sort nodes added.
            SortChildNodes();
        }