Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CollectionPropertyChangedEventArgs"/> class.
        /// </summary>
        /// <param name="action">The action that caused the event.</param>
        /// <param name="newItems">The list of new items involved in the change.</param>
        /// <param name="oldItems">The list of items affected by a replacement, removal, or movement of members within a collection.</param>
        public CollectionPropertyChangedEventArgs(CollectionPropertyChangedAction action, IList?newItems, IList?oldItems)
            : this(action)
        {
            if (newItems != null)
            {
                NewItems = newItems;
            }

            if (oldItems != null)
            {
                OldItems = oldItems;
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CollectionPropertyChangedEventArgs"/> class.
 /// </summary>
 /// <param name="action">The action that caused the event.</param>
 private CollectionPropertyChangedEventArgs(CollectionPropertyChangedAction action)
 => Action = action;