1234567891011121314151617181920212223 |
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.Collections.Specialized;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace MeterVision.Helper
- {
- public class BulkObservableCollection<T> : ObservableCollection<T>
- {
- public void AddRange(IEnumerable<T> items)
- {
- foreach (var item in items)
- {
- Items.Add(item);
- }
- OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
- }
- }
- ///-----------------------
- }
|