public override IEnumerable <INotifyPropertyChanged> GetObjectsToNotify(object dataSource) { List <INotifyPropertyChanged> toNotifiy = new List <INotifyPropertyChanged>(); if (FormulaBindingDefinition != null) { toNotifiy.AddRange(FormulaBindingDefinition.GetObjectsToNotify(dataSource)); } //if (TargetBindingDefinition != null) // toNotifiy.AddRange(TargetBindingDefinition.GetObjectsToNotify(dataSource)); return(toNotifiy.Any() ? toNotifiy : null); }
public override bool MustNotify(object dataSource, object source, PropertyChangedEventArgs args) { return(FormulaBindingDefinition != null && FormulaBindingDefinition.MustNotify(dataSource, source, args)) ; //||(TargetBindingDefinition != null && TargetBindingDefinition.MustNotify(dataSource, source, args)); }