Ejemplo n.º 1
0
        /// <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);
            }
        }
Ejemplo n.º 2
0
        /// <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);
        }