Exemple #1
0
        public CreateTemplateCode CreateRuleInterfaceTemplate(Guid ui, string name, string description,
                                                              Guid ruleTemplate,
                                                              RuleInterfaceDirection direction, int maxLinks, int sortOrder)
        {
            var interfaceType = new RuleInterfaceTemplate();

            if (!_ruleInterfaceTemplates.ContainsKey(ui))
            {
                _ruleInterfaceTemplates.Add(ui, interfaceType);
                _ruleTemplates[ruleTemplate].RuleInterfaceTemplate.Add(interfaceType);
            }

            interfaceType.ObjId = ui;
            var retValue = CreateTemplateCode.Created;


            interfaceType.Name                        = name;
            interfaceType.Description                 = description;
            interfaceType.This2RuleTemplate           = ruleTemplate;
            interfaceType.This2RuleInterfaceDirection = (long)direction;
            interfaceType.MaxLinks                    = maxLinks;
            interfaceType.SortOrder                   = sortOrder;

            _ruleInterfaceTemplates[ui] = interfaceType;
            return(retValue);
        }
Exemple #2
0
 public CreateTemplateCode CreateRuleInterfaceTemplate(Guid ui, string name, string description,
                                                       Guid ruleTemplate,
                                                       RuleInterfaceDirection direction, int maxLinks, int sortOrder)
 {
     return(CreateRuleInterfaceTemplate(ui, name, description, ruleTemplate, direction, maxLinks, sortOrder,
                                        RuleInterfaceType.Unknown));
 }