Esempio n. 1
0
 private void InitializeDelegates()
 {
     Item_PropertyChangedDelegate    = new PropertyChangedEventHandler(Item_PropertyChanged);
     Item_PropertyChangingDelegate   = new PropertyChangingEventHandler(Item_PropertyChanging);
     Item_CollectionChangingDelegate = new NotifyCollectionChangingEventHandler(Item_CollectionChanging);
     Item_CollectionChangedDelegate  = new NotifyCollectionChangedEventHandler(Item_CollectionChanged);
 }
        /// <summary>
        ///     Invokes the <c>CollectionChanging</c> event.
        /// </summary>
        protected virtual void OnCollectionChanging(NotifyCollectionChangingEventArgs e)
        {
            NotifyCollectionChangingEventHandler handler = CollectionChanging;

            if (handler != null)
            {
                handler(this, e);
            }
        }