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