Ejemplo n.º 1
0
        public void NotifyModuleAdded(ScriptModuleHandle module, string symbol)
        {
            var script = new UserAddedScript()
            {
                Type   = UserAddedScriptType.Module,
                Symbol = symbol,
                Module = module
            };

            _externalScripts.Add(script);
            SetGlobalProperty(script.Symbol, null);
        }
Ejemplo n.º 2
0
        public UserAddedScript AddModule(string identifier, string filePath, ModuleImage image = null)
        {
            var item = new UserAddedScript
            {
                Type        = UserAddedScriptType.Module,
                Image       = image,
                Symbol      = identifier,
                FilePath    = filePath,
                LibraryName = LibraryName
            };

            Modules.Add(item);

            return(item);
        }