Пример #1
0
 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;
 }
Пример #3
0
 public void Insert(int index, ActionsPaneItem item)
 {
     base.Insert(index, item);
 }
Пример #4
0
 public void InsertRange(int index, ActionsPaneItem[] items)
 {
     base.InsertRange(index, items);
 }
Пример #5
0
 public void CopyTo(ActionsPaneItem[] array, int index)
 {
     this.CopyTo(array, index);
 }
Пример #6
0
 public int IndexOf(ActionsPaneItem item)
 {
     return base.List.IndexOf(item);
 }
Пример #7
0
 public bool Contains(ActionsPaneItem item)
 {
     return base.List.Contains(item);
 }
Пример #8
0
 public void AddRange(ActionsPaneItem[] items)
 {
     base.AddRange(items);
 }
Пример #9
0
 public int Add(ActionsPaneItem item)
 {
     return base.List.Add(item);
 }
Пример #10
0
 public void Remove(ActionsPaneItem item)
 {
     base.List.Remove(item);
 }
Пример #11
0
 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);
 }