internal void InitDeserializedCompositeSupport(StreamingContext context) { _notifier = new DetailedNotifyPropertyChange(); if (_children != null) { _children.DetailedPropertyChanging += (sender, e) => _notifier.NotifyPropertyChanging(sender, e); _children.DetailedPropertyChanged += (sender, e) => _notifier.NotifyPropertyChanged(sender, e); } }
// ======================================== // constructor // ======================================== public AssociationList(IList <T> list, Action <T> associator, Action <T> unassociator) { if (list == null || associator == null || unassociator == null) { throw new ArgumentNullException("list or associator or unassociator"); } _list = list; _associator = associator; _unassociator = unassociator; _eventSender = this; _eventPropertyName = Property.Associations; _notifier = new DetailedNotifyPropertyChange(); }
internal void InitDeserializedCompositeSupport(StreamingContext context) { _notifier = new DetailedNotifyPropertyChange(); }