コード例 #1
0
ファイル: Condition.cs プロジェクト: zszqwe/anycmd
        private void CreateResourceAttributeDesignator(object sender, EventArgs args)
        {
            ResourceAttributeDesignatorElement att = new ResourceAttributeDesignatorElement(string.Empty, false, "TODO: Add attribute id", string.Empty, Xacml.XacmlVersion.Version11);

            TreeNodes.AttributeDesignator node = new TreeNodes.AttributeDesignator(att);

            tvwCondition.Nodes.Add(node);
            _condition.Arguments.Add(att);
        }
コード例 #2
0
ファイル: Condition.cs プロジェクト: zszqwe/anycmd
        private void CreateResourceAttributeDesignatorFromFunction(object sender, EventArgs args)
        {
            TreeNodes.FunctionExecution func        = (TreeNodes.FunctionExecution)tvwCondition.SelectedNode;
            pol.ApplyBaseReadWrite      parentApply = func.ApplyBaseDefinition;

            ResourceAttributeDesignatorElement att = new ResourceAttributeDesignatorElement(string.Empty, false, "TODO: Add attribute id", string.Empty, Xacml.XacmlVersion.Version11);

            TreeNodes.AttributeDesignator node = new TreeNodes.AttributeDesignator(att);

            func.Nodes.Add(node);
            parentApply.Arguments.Add(att);
        }