Catel.MVVM.Providers.UserControlLogic.ClearWarningsAndErrorsForObject C# (CSharp) Метод

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

Clears the warnings and errors for the specified object.
Since there is a "bug" in the .NET Framework (DataContext issue), this method clears the current warnings and errors in the InfoBarMessageControl if available.
private ClearWarningsAndErrorsForObject ( object obj ) : void
obj object The object.
Результат void
        private void ClearWarningsAndErrorsForObject(object obj)
        {
            if (obj == null)
            {
                return;
            }

#if NET || SL5
            if (_infoBarMessageControl != null)
            {
                _infoBarMessageControl.ClearObjectMessages(obj);

                Log.Debug("Cleared all warnings and errors caused by '{0}' since this is caused by a DataContext issue in the .NET Framework", obj);
            }
#endif
        }
        #endregion