Esempio n. 1
0
        public void AddRange(ClientScriptItemBase item)
        {
            var itemAsInclude = (item as IncludeClientScriptItem);

            if (itemAsInclude == null)
            {
                Items[Items.Count.ToString()] = item;
            }
            else
            {
                Includes[Includes.Count.ToString()] = itemAsInclude;
            }
        }
Esempio n. 2
0
        public void InsertItem(string id, ClientScriptItemBase item)
        {
            var itemAsInclude = (item as IncludeClientScriptItem);

            if (itemAsInclude == null)
            {
                Items[id] = item;
            }
            else
            {
                Includes[id] = itemAsInclude;
            }
        }
Esempio n. 3
0
 /// <summary>
 /// Inserts the item.
 /// </summary>
 /// <param name="id">The id.</param>
 /// <param name="item">The item.</param>
 public void InsertItem(string id, ClientScriptItemBase item)
 {
     var itemAsInclude = (item as IncludeClientScriptItem);
     if (itemAsInclude == null)
         Items[id] = item;
     else
         Includes[id] = itemAsInclude;
 }
Esempio n. 4
0
 /// <summary>
 /// Adds the range.
 /// </summary>
 /// <param name="item">The item.</param>
 public void AddRange(ClientScriptItemBase item)
 {
     var itemAsInclude = (item as IncludeClientScriptItem);
     if (itemAsInclude == null)
         Items[Items.Count.ToString()] = item;
     else
         Includes[Includes.Count.ToString()] = itemAsInclude;
 }
Esempio n. 5
0
 public void AddRange <TShard>(ClientScriptItemBase item)
 {
     GetRepository(typeof(TShard)).AddRange(item);
 }
Esempio n. 6
0
 public void AddRange(ClientScriptItemBase item)
 {
     _defaultRepository.AddRange(item);
 }