/// <summary> /// Insert a item into collection /// </summary> /// <param name="index">index of item</param> /// <param name="item">report item</param> public void Insert(int index, ReportItem item) { if (item != null) { item.SetCollection(this); } list.Insert(index, item); }
/// <summary> /// Remove item from collection /// </summary> /// <param name="item">report item</param> public void Remove(ReportItem item) { if (item != null) { item.SetCollection(null); } list.Remove(item); }
/// <summary> /// Add a report item to collection /// </summary> /// <param name="item">report item</param> /// <returns>index of item</returns> public int Add(ReportItem item) { if (item != null) { item.SetCollection(this); } return list.Add(item); }