Exemplo n.º 1
0
        public WCellAddonContext TryLoadAddon(string libName)
        {
            WCellAddonContext contextByName = WCellAddonMgr.GetContextByName(libName);

            if (contextByName != null)
            {
                return(this.LoadAndInitAddon(contextByName.File));
            }
            if (!libName.EndsWith(".dll", StringComparison.InvariantCultureIgnoreCase))
            {
                libName += ".dll";
            }
            return(this.LoadAndInitAddon(libName));
        }
Exemplo n.º 2
0
 public static IWCellAddon GetAddon(string shortName)
 {
     return(WCellAddonMgr.GetContextByName(shortName)?.Addon);
 }