protected bool NotifyPropertyChanging(PropertyDescriptor property, object oldValue, object newValue) { if (property.SuppressNotifications) return true; var propertyChanging = PropertyChanging; if (propertyChanging == null) return true; var args = new PropertyChangingEventArgsEx(property.PropertyName, oldValue, newValue); propertyChanging(this, args); return !args.Cancel; }
protected bool NotifyPropertyChanging(PropertyDescriptor property, object oldValue, object newValue) { if (property.SuppressNotifications) { return(true); } var propertyChanging = PropertyChanging; if (propertyChanging == null) { return(true); } var args = new PropertyChangingEventArgsEx(property.PropertyName, oldValue, newValue); propertyChanging(this, args); return(!args.Cancel); }