Beispiel #1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="policyDocument"></param>
        public PolicyDocument( pol.PolicyDocumentReadWrite policyDocument )
        {
            _policyDocument = policyDocument;

            this.Text = "Policy Document";

            if( _policyDocument.Policy != null )
            {
                this.Nodes.Add( new Policy( _policyDocument.Policy ) );
            }
            else if( _policyDocument.PolicySet != null )
            {
                this.Nodes.Add( new PolicySet( _policyDocument.PolicySet ) );
            }
            this.Expand();
        }
Beispiel #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="policyDocument"></param>
        public PolicyDocument(pol.PolicyDocumentReadWrite policyDocument)
        {
            _policyDocument = policyDocument;

            this.Text = "Policy Document";

            if (_policyDocument.Policy != null)
            {
                this.Nodes.Add(new Policy(_policyDocument.Policy));
            }
            else if (_policyDocument.PolicySet != null)
            {
                this.Nodes.Add(new PolicySet(_policyDocument.PolicySet));
            }
            this.Expand();
        }