private void CreateResourceAttributeDesignatorFromFunction( object sender, EventArgs args ) { FunctionExecution func = (FunctionExecution)tvwCondition.SelectedNode; pol.ApplyBaseReadWrite parentApply = func.ApplyBaseDefinition; pol.ResourceAttributeDesignatorElement att = new pol.ResourceAttributeDesignatorElement( string.Empty, false, "TODO: Add attribute id", string.Empty, XacmlVersion.Version11 ); AttributeDesignator node = new AttributeDesignator( att ); func.Nodes.Add( node ); parentApply.Arguments.Add( att ); }
private void CreateResourceAttributeDesignator( object sender, EventArgs args ) { pol.ResourceAttributeDesignatorElement att = new pol.ResourceAttributeDesignatorElement( string.Empty, false, "TODO: Add attribute id", string.Empty, XacmlVersion.Version11 ); AttributeDesignator node = new AttributeDesignator( att ); tvwCondition.Nodes.Add( node ); _condition.Arguments.Add( att ); }