예제 #1
0
 protected override void InsertItem(int index, DynamicGroup <TKey, TItem> item)
 {
     item.Items.Limit     = Limit;
     item.Items.Offset    = Offset;
     item.Items.Ascending = Ascending;
     item.Items.Filter    = Filter;
     item.Items.Order     = Order;
     item.Items.Comparer  = Comparer;
     base.InsertItem(index, item);
     OnPropertyChanged(this, new PropertyChangedEventArgs(nameof(Count)));
     OnCollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item, index));
 }
예제 #2
0
        protected override void SetItem(int index, DynamicGroup <TKey, TItem> item)
        {
            var originalItem = this[index];

            item.Items.Limit     = Limit;
            item.Items.Offset    = Offset;
            item.Items.Ascending = Ascending;
            item.Items.Filter    = Filter;
            item.Items.Order     = Order;
            item.Items.Comparer  = Comparer;
            base.SetItem(index, item);
            OnCollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Replace, item, originalItem, index));
        }
예제 #3
0
 public void Replace(int index, DynamicGroup <TKey, TItem> item)
 {
     SetItem(index, item);
 }