Esempio n. 1
0
        public void UnsubscribeFromHasChanged(UINotifyPropertyChanges subscription)
        {
            if (subscription == null)
            {
                throw new ArgumentNullException(nameof(subscription));
            }

            if (this.inheritHasChangedFrom.Contains(subscription))
            {
                this.inheritHasChangedFrom.Remove(subscription);
            }
        }
Esempio n. 2
0
        public void UnsubscribeFromErrors(UINotifyPropertyChanges subscription)
        {
            if (subscription == null)
            {
                throw new ArgumentNullException(nameof(subscription));
            }

            if (this.inheritErrorsFrom.Contains(subscription))
            {
                this.inheritErrorsFrom.Remove(subscription);
                subscription.OnErrorChanged -= errorInheritFrom_ErrorChanged;
            }
        }
Esempio n. 3
0
        public void SubscribeToErrors(UINotifyPropertyChanges subscription)
        {
            if (subscription == null)
            {
                throw new ArgumentNullException(nameof(subscription));
            }

            if (!this.inheritErrorsFrom.Contains(subscription))
            {
                this.inheritErrorsFrom.Add(subscription);
                subscription.OnErrorChanged += errorInheritFrom_ErrorChanged;
            }
        }
Esempio n. 4
0
        public void InheritHasChanged(UINotifyPropertyChanges inheritFrom)
        {
            if (inheritFrom == null)
            {
                throw new ArgumentNullException(nameof(inheritFrom));
            }

            if (!this.inheritHasChangedFrom.Contains(inheritFrom))
            {
                this.inheritHasChangedFrom.Add(inheritFrom);
                inheritFrom.PropertyChanged += inheritedHasChanged_PropertyChanged;
            }
        }