RegisterClientScriptInclude() private method

private RegisterClientScriptInclude ( Type type, string resourceName ) : void
type Type
resourceName string
return void
Example #1
1
        public override void RegisterScripts(ResourceManager scriptManager)
        {
            scriptManager.RegisterClientScriptInclude("TreeCssInitializer",
                WebResourceUtility.GetUrl(GetType(), "Zeus.Admin.Plugins.Tree.Resources.TreeCssInitializer.js"));

            // Call tree modification plugins.
            foreach (ITreePlugin treePlugin in Context.Current.ResolveAll<ITreePlugin>())
            {
                string[] requiredScripts = treePlugin.RequiredScripts;
                if (requiredScripts != null)
                    foreach (string requiredScript in requiredScripts)
                        scriptManager.RegisterClientScriptInclude(treePlugin.GetType().FullName, requiredScript);
            }
        }
        public override void RegisterScripts(ResourceManager scriptManager)
        {
            // Render action plugin scripts.
            scriptManager.RegisterClientScriptInclude("ActionPlugin",
                WebResourceUtility.GetUrl(typeof(ContextMenuMainInterfacePlugin), "Zeus.Admin.Plugins.ContextMenu.Resources.Ext.ux.zeus.ContextMenuPlugin.js"));

            foreach (IContextMenuPlugin plugin in Context.Current.ResolveAll<IContextMenuPlugin>())
            {
                string[] requiredScripts = plugin.RequiredScripts;
                if (requiredScripts != null)
                    foreach (string requiredScript in requiredScripts)
                        scriptManager.RegisterClientScriptInclude(plugin.GetType().FullName, requiredScript);
            }
        }
Example #3
0
 public virtual void RegisterScripts(ResourceManager scriptManager)
 {
     string[] requiredScripts = RequiredScripts;
     if (requiredScripts != null)
         foreach (string requiredScript in requiredScripts)
             scriptManager.RegisterClientScriptInclude(GetType().FullName, requiredScript);
 }