public void InsertRange(int index, ViewDescription[] items) { base.InsertRange(index, items); }
private void Notify(int index, ViewDescription[] items, ViewDescriptionCollectionChangeType action) { if ((this._data.DefaultIndex < 0) || (this._data.DefaultIndex >= base.Count)) { this._data.DefaultIndex = base.Count - 1; } this.Synchronize(); if (this.ItemsChanged != null) { this.ItemsChanged(this, new ViewDescriptionCollectionEventArgs(index, items, action)); } }
public int IndexOf(ViewDescription item) { return base.List.IndexOf(item); }
public void Insert(int index, ViewDescription item) { base.Insert(index, item); }
public bool Contains(ViewDescription item) { return base.List.Contains(item); }
public void CopyTo(ViewDescription[] array, int index) { this.CopyTo(array, index); }
public void AddRange(ViewDescription[] items) { base.AddRange(items); }
public int Add(ViewDescription item) { return base.List.Add(item); }
public void Remove(ViewDescription item) { base.List.Remove(item); }
protected override void OnItemsRemoved(int index, object[] items) { foreach (ViewDescription description in items) { this._idToViewDescription.Remove(description.Id); description.Changed -= new EventHandler(this.ItemChanged); } ViewDescription[] destinationArray = new ViewDescription[items.Length]; Array.Copy(items, destinationArray, items.Length); this.Notify(index, destinationArray, ViewDescriptionCollectionChangeType.Remove); }
public ViewDescriptionCollectionEventArgs(int index, ViewDescription[] items, ViewDescriptionCollectionChangeType changeType) { this._index = index; this._items = items; this._changeType = changeType; }