void IPropertyNotify.NotifyAll() { if (isSet) { notifyable.NotifyAll(); } }
private void PropertyChangedEventHandler(object sender, PropertyChangedEventArgs e) { if (!sourcePropertyNames.Any(name => name == e.PropertyName)) { // changed property was not one of the specified source properties return; } if (notifyPropertyAction != null) { notifyPropertyAction(e.PropertyName); } else if (isNotifyAll) { targetNotifyable.NotifyAll(); } else { targetPropertyNames.ForEach(name => targetNotifyable.Notify(name)); } }