Exemplo n.º 1
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);
		}
Exemplo 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);
        }
Exemplo 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
            }
        }
Exemplo n.º 4
0
		public ScriptManager ()
		{
			Components = new ScriptComponentCollection();
			Namespaces = new List<ScriptNamespace>();
			ScriptRefs = new Hashtable();
		}
Exemplo n.º 5
0
 public ScriptManager()
 {
     Components = new ScriptComponentCollection();
     Namespaces = new List <ScriptNamespace>();
     ScriptRefs = new Hashtable();
 }