Catel.Data.ModelBase.NotifyErrorsChanged C# (CSharp) Метод

NotifyErrorsChanged() приватный Метод

Notifies all listeners that the errors for the specified property have changed. If the propertyName is null or string.Empty, the business errors will be updated.
private NotifyErrorsChanged ( string propertyName, bool notifyHasErrors ) : void
propertyName string Name of the property.
notifyHasErrors bool if set to true, the property will be notified as well.
Результат void
        private void NotifyErrorsChanged(string propertyName, bool notifyHasErrors)
        {
            if (string.IsNullOrEmpty(propertyName))
            {
                RaisePropertyChanged(ErrorMessageProperty);

                _errorsChanged.SafeInvoke(this, () => new DataErrorsChangedEventArgs(string.Empty));
            }
            else
            {
                RaisePropertyChanged(this, new PropertyChangedEventArgs(propertyName), false, true);

                _errorsChanged.SafeInvoke(this, () => new DataErrorsChangedEventArgs(propertyName));
            }

            if (notifyHasErrors)
            {
                RaisePropertyChanged(HasErrorsMessageProperty);
            }
        }