Пример #1
0
 public new void InsertRange(int index, IEnumerable <T> collection)
 {
     OnRangeBefore?.Invoke(this, new NListEventArgs <IEnumerable <T> >(collection, collection.Count()));
     if (_stopcapacity > 0 && Count >= _stopcapacity)
     {
         Clear();
     }
     base.InsertRange(index, collection);
     OnRangeAfter?.Invoke(this, new NListEventArgs <IEnumerable <T> >(this, Count));
 }
Пример #2
0
 public new void AddRange(IEnumerable <T> collection)
 {
     OnRangeBefore?.Invoke(this, new NListEventArgs <IEnumerable <T> >(collection, collection.Count()));
     base.AddRange(collection);
     OnRangeAfter?.Invoke(this, new NListEventArgs <IEnumerable <T> >(this, Count));
 }
Пример #3
0
 public new void RemoveRange(int index, int count)
 {
     OnRangeBefore?.Invoke(this, new NListEventArgs <IEnumerable <T> >(GetRange(index, count), count));
     base.RemoveRange(index, count);
     OnRangeAfter?.Invoke(this, new NListEventArgs <IEnumerable <T> >(default(IEnumerable <T>), Count));
 }