Exemplo n.º 1
0
        //
        public string executeAddon(string addonIDGuidOrName, int wrapperId, addonContext context)
        {
            addonExecuteContext executeContext = new addonExecuteContext {
                addonType    = context,
                instanceGuid = cp.core.docProperties.getText("instanceId"),
                wrapperID    = wrapperId
            };

            if (addonIDGuidOrName.isNumeric())
            {
                return((string)cp.Addon.Execute(EncodeInteger(addonIDGuidOrName), executeContext));
            }
            else if (isGuid(addonIDGuidOrName))
            {
                return((string)cp.Addon.Execute(addonIDGuidOrName, executeContext));
            }
            else
            {
                return((string)cp.Addon.ExecuteByUniqueName(addonIDGuidOrName, executeContext));
            }
        }
Exemplo n.º 2
0
 public override string ExecuteAddon(string addonIDGuidOrName, addonContext context) => executeAddon(addonIDGuidOrName, 0, context);
Exemplo n.º 3
0
 public abstract string ExecuteAddon(string IdGuidOrName, addonContext context);