BrightIdeasSoftware.ObjectListView.UpdateNotificationSubscriptions C# (CSharp) 메소드

UpdateNotificationSubscriptions() 보호된 메소드

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
리턴 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