Ejemplo n.º 1
0
 void IPropertyNotify.NotifyAll()
 {
     if (isSet)
     {
         notifyable.NotifyAll();
     }
 }
Ejemplo n.º 2
0
        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));
            }
        }