private void Notify(int index, ActionsPaneItem[] items, ActionsPaneItemCollectionChangeType action) { if (this.Changed != null) { this.Changed(this, new ActionsPaneItemCollectionEventArgs(index, items, action)); } }
internal ActionsPaneItemCollectionEventArgs(int index, ActionsPaneItem[] items, ActionsPaneItemCollectionChangeType changeType) { this._index = index; this._items = items; this._changeType = changeType; }
public void Insert(int index, ActionsPaneItem item) { base.Insert(index, item); }
public void InsertRange(int index, ActionsPaneItem[] items) { base.InsertRange(index, items); }
public void CopyTo(ActionsPaneItem[] array, int index) { this.CopyTo(array, index); }
public int IndexOf(ActionsPaneItem item) { return base.List.IndexOf(item); }
public bool Contains(ActionsPaneItem item) { return base.List.Contains(item); }
public void AddRange(ActionsPaneItem[] items) { base.AddRange(items); }
public int Add(ActionsPaneItem item) { return base.List.Add(item); }
public void Remove(ActionsPaneItem item) { base.List.Remove(item); }
protected override void OnItemsRemoved(int index, object[] items) { foreach (ActionsPaneItem item in items) { item.Changed -= new EventHandler(this.ItemChanged); } ActionsPaneItem[] destinationArray = new ActionsPaneItem[items.Length]; Array.Copy(items, destinationArray, items.Length); this.SyncData(); this.Notify(index, destinationArray, ActionsPaneItemCollectionChangeType.Remove); }