Ejemplo n.º 1
0
        public TreeNode GetExplorerTopNode()
        {
            var tNode = new TreeNode("CIA")
            {
                Tag = TreeViewContextTag.Create(this, (int)CIAView.CIA)
            };

            if (CertificatesContext != null && CertificatesContext.List.Count > 0)
            {
                tNode.Nodes.Add(CertificatesContext.GetExplorerTopNode());
            }

            if ((uint)TicketContext.Ticket.SignatureType != 0)
            {
                tNode.Nodes.Add(TicketContext.GetExplorerTopNode());
            }
            if (TMDContext != null)
            {
                tNode.Nodes.Add(TMDContext.GetExplorerTopNode());
            }

            if (Header.MetaLength > 0)
            {
                var bNode = new TreeNode("Meta")
                {
                    Tag = TreeViewContextTag.Create(this, (int)CIAView.Meta)
                };
                bNode.Nodes.Add(ICN.GetExplorerTopNode());
                tNode.Nodes.Add(bNode);
            }
            return(tNode);
        }
Ejemplo n.º 2
0
        public TreeNode GetExplorerTopNode()
        {
            var tNode = new TreeNode("TMD")
            {
                Tag = TreeViewContextTag.Create(this, (int)TMDView.TMD)
            };

            tNode.Nodes.Add("Content Info Records").Tag  = TreeViewContextTag.Create(this, (int)TMDView.ContentInfoRecord);
            tNode.Nodes.Add("Content Chunk Records").Tag = TreeViewContextTag.Create(this, (int)TMDView.ContentChunkRecord);
            if (CertificatesContext != null)
            {
                tNode.Nodes.Add(CertificatesContext.GetExplorerTopNode());
            }
            return(tNode);
        }