示例#1
0
 public void Remove(WebDataSourceItem item)
 {
     if (item != null)
     {
         item.SetCollection(null);
     }
     list.Remove(item);
 }
示例#2
0
 public void Insert(int index, WebDataSourceItem item)
 {
     if (item != null)
     {
         item.SetCollection(this);
     }
     list.Insert(index, item);
 }
示例#3
0
 public bool Contains(WebDataSourceItem item)
 {
     return list.Contains(item);
 }
示例#4
0
 public int IndexOf(WebDataSourceItem item)
 {
     return list.IndexOf(item);
 }
示例#5
0
 /// <summary>
 /// Add a webdatasource item to collection
 /// </summary>
 /// <param name="item">field item</param>
 /// <returns>index of item</returns>
 public int Add(WebDataSourceItem item)
 {
     if (item != null)
     {
         item.SetCollection(this);
     }
     return list.Add(item);
 }