Ejemplo n.º 1
0
        public void RemoveNotifyPropertyChangedHandler(object value, IHandleNotifyPropertyChanged handler)
        {
            var notifyPropertyChanged = value as INotifyPropertyChanged;

            if (notifyPropertyChanged != null && handler != null)
            {
                notifyPropertyChanged.PropertyChanged -= handler.HandleNotifyPropertyChanged;
            }
        }
Ejemplo n.º 2
0
		public void AddNotifyPropertyChangedHandler(object value, IHandleNotifyPropertyChanged handler)
		{
			RemoveNotifyPropertyChangedHandler(value, handler);
			var notifyPropertyChanged = value as INotifyPropertyChanged;
			if (notifyPropertyChanged != null && handler != null)
			{
				notifyPropertyChanged.PropertyChanged += handler.HandleNotifyPropertyChanged;
			}
		}