Exemple #1
0
        protected void RenameRuleClick([NotNull] Message message)
        {
            Assert.ArgumentNotNull(message, "message");
            var id      = message.Arguments["ruleId"];
            var newName = message.Arguments["name"];

            Assert.ArgumentNotNull(id, "id");
            if (!string.IsNullOrEmpty(newName))
            {
                var ruleSet = FilterSet;
                var rule    = GetFilterById(ruleSet, id);
                if (rule != null)
                {
                    rule.SetAttributeValue("name", MainUtil.EscapePling(newName));
                    FilterSet = ruleSet;
                }
            }
        }