コード例 #1
0
        void AddChildren()
        {
            var lvd = new MmcListViewDescription();

            lvd.DisplayName = "Certificate details";
            lvd.ViewType    = typeof(CertificateDetailsListView);

            var activeNode = new VMCACertsNode(ServerDTO);

            activeNode.DisplayName = "Active Certificates";
            activeNode.Tag         = CertificateState.Active;
            activeNode.ImageIndex  = activeNode.SelectedImageIndex = (int)VMCAImageIndex.ActiveCertificate;
            AddViewDescription(activeNode, lvd);

            var revokedNode = new VMCACertsNode(ServerDTO);

            revokedNode.DisplayName = "Revoked Certificates";
            revokedNode.Tag         = CertificateState.Revoked;
            revokedNode.ImageIndex  = revokedNode.SelectedImageIndex = (int)VMCAImageIndex.RevokedCertificate;
            AddViewDescription(revokedNode, lvd);

            var expiredNodes = new VMCACertsNode(ServerDTO);

            expiredNodes.DisplayName = "Expired Certificates";
            expiredNodes.Tag         = CertificateState.Expired;
            expiredNodes.ImageIndex  = expiredNodes.SelectedImageIndex = (int)VMCAImageIndex.ExpiredCertificate;
            AddViewDescription(expiredNodes, lvd);

            var personalNodes = new VMCAPersonalNode(ServerDTO);

            personalNodes.DisplayName = "Personal Certificates";
            personalNodes.ImageIndex  = personalNodes.SelectedImageIndex = (int)VMCAImageIndex.Certificate;
            this.Children.Add(personalNodes);
        }
コード例 #2
0
ファイル: VMCAServerNode.cs プロジェクト: syeduguri/lightwave
        void AddChildren()
        {
            var activeNode = new VMCACertsNode(ServerDTO);

            activeNode.DisplayName = "Active Certificates";
            activeNode.Tag         = CertificateState.Active;
            this.Children.Add(activeNode);

            var revokedNode = new VMCACertsNode(ServerDTO);

            revokedNode.DisplayName = "Revoked Certificates";
            revokedNode.Tag         = CertificateState.Revoked;
            this.Children.Add(revokedNode);

            var expiredNodes = new VMCACertsNode(ServerDTO);

            expiredNodes.DisplayName = "Expired Certificates";
            expiredNodes.Tag         = CertificateState.Expired;
            this.Children.Add(expiredNodes);

            var personalNodes = new VMCAPersonalNode(ServerDTO);

            personalNodes.DisplayName = "Personal Certificates";
            this.Children.Add(personalNodes);
        }
コード例 #3
0
        void AddChildren ()
        {
            var activeNode = new VMCACertsNode (ServerDTO);
            activeNode.DisplayName = "Active Certificates";
            activeNode.Tag = CertificateState.Active;
            this.Children.Add (activeNode);

            var revokedNode = new VMCACertsNode (ServerDTO);
            revokedNode.DisplayName = "Revoked Certificates";
            revokedNode.Tag = CertificateState.Revoked;
            this.Children.Add (revokedNode);

            var expiredNodes = new VMCACertsNode (ServerDTO);
            expiredNodes.DisplayName = "Expired Certificates";
            expiredNodes.Tag = CertificateState.Expired;
            this.Children.Add (expiredNodes);

            var personalNodes = new VMCAPersonalNode (ServerDTO);
            personalNodes.DisplayName = "Personal Certificates";
            this.Children.Add (personalNodes);
        }