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