protected virtual void OnPropertyChanged(PropertyNotificationEventArgs args)
        {
            PropertyChangedEventHandler handler = PropertyChanged;

            if (handler != null)
            {
                handler(this, args);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructs a child notification event based of childs propertynotification
 /// </summary>
 /// <param name="eventSource">Object whose child object has a property changed.</param>
 /// <param name="childPropertyName">Name of the property which represents the child object whose property has chagned.</param>
 /// <param name="childNotification">Event args for child's property notification.</param>
 public PropertyNotificationEventArgs(object eventSource, string childPropertyName, PropertyNotificationEventArgs childNotification)
     : this(eventSource, childPropertyName, null, null, childNotification.IsUndoable)
 {
     _childNotification = childNotification;
 }
 protected void OnPropertyChanged(string childPropertyName, PropertyNotificationEventArgs args)
 {
     OnPropertyChanged(new PropertyNotificationEventArgs(this, childPropertyName, args));
 }