public void AddCollectionItem (string collectionName, IScriptComponent item)
		{
			ScriptComponentCollection col = (ScriptComponentCollection)collections[collectionName];
			if (col == null) {
				col = new ScriptComponentCollection ();
				collections [collectionName] = col;
			}

			col.Add (item);
		}
Esempio n. 2
0
        public void AddCollectionItem(string collectionName, IScriptComponent item)
        {
            ScriptComponentCollection col = (ScriptComponentCollection)collections[collectionName];

            if (col == null)
            {
                col = new ScriptComponentCollection();
                collections [collectionName] = col;
            }

            col.Add(item);
        }
Esempio n. 3
0
        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
            }
        }
Esempio n. 4
0
		public ScriptManager ()
		{
			Components = new ScriptComponentCollection();
			Namespaces = new List<ScriptNamespace>();
			ScriptRefs = new Hashtable();
		}
Esempio n. 5
0
 public ScriptManager()
 {
     Components = new ScriptComponentCollection();
     Namespaces = new List <ScriptNamespace>();
     ScriptRefs = new Hashtable();
 }