Пример #1
0
        protected virtual void OnPropertyChanged(PropertyNotificationEventArgs args)
        {
            PropertyChangedEventHandler handler = PropertyChanged;

            if (handler != null)
            {
                handler(this, args);
            }
        }
 /// <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;
 }
Пример #3
0
 protected void OnPropertyChanged(string childPropertyName, PropertyNotificationEventArgs args)
 {
     OnPropertyChanged(new PropertyNotificationEventArgs(this, childPropertyName, args));
 }