BrightIdeasSoftware.ObjectListView.UpdateNotificationSubscriptions C# (CSharp) Method

UpdateNotificationSubscriptions() protected method

Change any subscriptions to INotifyPropertyChanged events on our current model objects so that we no longer listen for events on the old models and do listen for events on the given collection.
This does nothing if UseNotifyPropertyChanged is false.
protected UpdateNotificationSubscriptions ( IEnumerable collection ) : void
collection IEnumerable
return void
        protected virtual void UpdateNotificationSubscriptions(IEnumerable collection)
        {
            if (!this.UseNotifyPropertyChanged)
                return;

            // We could calculate a symmetric difference between the old models and the new models
            // except that we don't the previous models at this point.

            this.UnsubscribeNotifications(null);
            this.SubscribeNotifications(collection ?? this.Objects);
        }
ObjectListView