Esempio n. 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));
 }
Esempio n. 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));
 }
Esempio n. 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));
 }