public void UnsubscribeFromHasChanged(UINotifyPropertyChanges subscription) { if (subscription == null) { throw new ArgumentNullException(nameof(subscription)); } if (this.inheritHasChangedFrom.Contains(subscription)) { this.inheritHasChangedFrom.Remove(subscription); } }
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; } }
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; } }
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; } }