/// <summary> /// Invoke this method to signal the events associated with changing the errors dictionary. The parameter updateType is returned by the methods on ErrorsDictionary. /// </summary> /// <param name="propertyName">Name of the property.</param> /// <param name="updateType">Type of the update.</param> internal void OnErrorsChanged(string propertyName, ErrorsDictionaryUpdateType updateType) { if (updateType == ErrorsDictionaryUpdateType.NoChange) { return; } OnErrorsChanged(propertyName); if (updateType == ErrorsDictionaryUpdateType.HasErrorsIsFalse || updateType == ErrorsDictionaryUpdateType.HasErrorsIsTrue) { InvokePropertyChanged(CommonProperties.HasErrorsProperty); } }
/// <summary> /// Invoke this method to signal the events associated with changing the errors dictionary. The parameter updateType is returned by the methods on ErrorsDictionary. /// </summary> /// <param name="propertyName">Name of the property.</param> /// <param name="updateType">Type of the update.</param> internal void OnErrorsChanged(string propertyName, ErrorsDictionaryUpdateType updateType) { if (updateType == ErrorsDictionaryUpdateType.NoChange) return; OnErrorsChanged(propertyName); if (updateType == ErrorsDictionaryUpdateType.HasErrorsIsFalse || updateType == ErrorsDictionaryUpdateType.HasErrorsIsTrue) InvokePropertyChanged(CommonProperties.HasErrorsProperty); }