コード例 #1
0
            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);
                        }
                    }
                }
            }
コード例 #2
0
        protected virtual void OnPropertyChanged(PropertyChangedExEventArgs args)
        {
            PropertyChangedExEventHandler handler = this.PropertyChanged;

            if (handler != null)
            {
                handler(this, args);
            }
        }
コード例 #3
0
 void INotifyPropertyChangedEx_Helper.NotifyPropertyChanged(PropertyChangedExEventArgs args)
 {
     this.OnPropertyChanged(args);
 }