private void OnPropertyChanged(object sender, PropertyChangedExEventArgs args) { Debug.WriteLine("MultiPropertyListener<> {0}", new object[] { sender }); Partial @partial; if (this.partials.TryGetValue(args.PropertyName, out @partial)) { if (@partial.EventHandler_v2 != null) { @partial.EventHandler_v2(sender, args); } if (this.ValuesToManager && this.Manager.IsValid(typeof(TItem))) { if (args.OldValue != null) { this.Manager.Unregister(args.OldValue); } if (args.NewValue != null) { this.Manager.Register(args.NewValue); } } } }
protected virtual void OnPropertyChanged(PropertyChangedExEventArgs args) { PropertyChangedExEventHandler handler = this.PropertyChanged; if (handler != null) { handler(this, args); } }
void INotifyPropertyChangedEx_Helper.NotifyPropertyChanged(PropertyChangedExEventArgs args) { this.OnPropertyChanged(args); }