예제 #1
0
파일: Condition.cs 프로젝트: zszqwe/anycmd
        private void CreateFunctionExecution(object sender, EventArgs args)
        {
            pol.ApplyElement            apply = new pol.ApplyElement("urn:new_function", new pol.ExpressionReadWriteCollection(), Xacml.XacmlVersion.Version11);
            TreeNodes.FunctionExecution node  = new TreeNodes.FunctionExecution(apply);

            tvwCondition.Nodes.Add(node);
            _condition.Arguments.Add(apply);
        }
예제 #2
0
파일: Condition.cs 프로젝트: zszqwe/anycmd
        private void CreateFunctionExecutionFromFunction(object sender, EventArgs args)
        {
            TreeNodes.FunctionExecution func        = (TreeNodes.FunctionExecution)tvwCondition.SelectedNode;
            pol.ApplyBaseReadWrite      parentApply = func.ApplyBaseDefinition;

            pol.ApplyElement            apply = new pol.ApplyElement("urn:new_function", new pol.ExpressionReadWriteCollection(), Xacml.XacmlVersion.Version11);
            TreeNodes.FunctionExecution node  = new TreeNodes.FunctionExecution(apply);

            func.Nodes.Add(node);
            parentApply.Arguments.Add(apply);
        }
예제 #3
0
        private void CreateFunctionExecutionFromFunction( object sender, EventArgs args )
        {
            TreeNodes.FunctionExecution func = (TreeNodes.FunctionExecution)tvwCondition.SelectedNode;
            pol.ApplyBaseReadWrite parentApply = func.ApplyBaseDefinition;

            pol.ApplyElement apply = new pol.ApplyElement("urn:new_function", new pol.ExpressionReadWriteCollection(), Xacml.XacmlVersion.Version11);
            TreeNodes.FunctionExecution node = new TreeNodes.FunctionExecution( apply );

            func.Nodes.Add( node );
            parentApply.Arguments.Add( apply );
        }
예제 #4
0
        private void CreateFunctionExecution( object sender, EventArgs args )
        {
            pol.ApplyElement apply = new pol.ApplyElement("urn:new_function", new pol.ExpressionReadWriteCollection(), Xacml.XacmlVersion.Version11);
            TreeNodes.FunctionExecution node = new TreeNodes.FunctionExecution( apply );

            tvwCondition.Nodes.Add( node );
            _condition.Arguments.Add( apply );
        }