예제 #1
0
        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);
        }
예제 #2
0
 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));
 }