public void AddCollectionItem (string collectionName, IScriptComponent item) { ScriptComponentCollection col = (ScriptComponentCollection)collections[collectionName]; if (col == null) { col = new ScriptComponentCollection (); collections [collectionName] = col; } col.Add (item); }
public void AddCollectionItem(string collectionName, IScriptComponent item) { ScriptComponentCollection col = (ScriptComponentCollection)collections[collectionName]; if (col == null) { col = new ScriptComponentCollection(); collections [collectionName] = col; } col.Add(item); }
protected override void RenderScriptTagContents(ScriptTextWriter writer) { base.RenderScriptTagContents(writer); foreach (string colName in collections.Keys) { ScriptComponentCollection col = (ScriptComponentCollection)collections[colName]; writer.WriteStartElement(colName); foreach (IScriptComponent c in col) { c.RenderScript(writer); } writer.WriteEndElement(); // colName } }
public ScriptManager () { Components = new ScriptComponentCollection(); Namespaces = new List<ScriptNamespace>(); ScriptRefs = new Hashtable(); }
public ScriptManager() { Components = new ScriptComponentCollection(); Namespaces = new List <ScriptNamespace>(); ScriptRefs = new Hashtable(); }