/// <summary> /// <para>Adds any configured <see cref="AuthorizationRuleNode"/> objects based on the supplied configuration data.</para> /// </summary> protected override void OnSited() { base.OnSited(); foreach (AuthorizationRuleData ruleData in authorizationRuleProviderData.Rules) { AuthorizationRuleNode ruleNode = new AuthorizationRuleNode(ruleData); this.Nodes.Add(ruleNode); } }
/// <summary> /// Intercepts Command.Execute() and launches a <c>KeyManager</c> prompting the user to manage a key. /// </summary> protected override void ExecuteCore(ConfigurationNode node) { ExpressionEditorFormUI formUI = new ExpressionEditorFormUI(); formUI.RuleName = SR.AuthorizationRuleNodeName; DialogResult result = formUI.ShowDialog(); if (result == DialogResult.OK) { base.ExecuteCore(node); AuthorizationRuleNode ruleNode = (AuthorizationRuleNode)ChildNode; ruleNode.Expression = formUI.Expression; } }
private void BuildAuthorizationRule(AuthorizationRuleData authorizationRule) { AuthorizationRuleNode ruleNode = new AuthorizationRuleNode(authorizationRule); authorizationRuleProviderNode.AddNode(ruleNode); }
/// <summary> /// <para>Adds any configured <see cref="AuthorizationRuleNode"/> objects based on the supplied configuration data.</para> /// </summary> protected override void OnSited() { base.OnSited(); foreach (AuthorizationRuleData ruleData in authorizationRuleProviderData.Rules) { AuthorizationRuleNode ruleNode = new AuthorizationRuleNode(ruleData); this.Nodes.Add(ruleNode); } }
private void BuildAuthorizationRule(AuthorizationRuleData authorizationRule) { AuthorizationRuleNode ruleNode = new AuthorizationRuleNode(authorizationRule); authorizationRuleProviderNode.AddNode(ruleNode); }