/// <summary> /// Прекращение отслеживания ошибок привязки /// </summary> public void DetachBindingErrorListener() { if (this.IsAttached) { this.errorListener.ErrorCatched -= this.OnBindingErrorCatched; this.errorListener.Dispose(); this.errorListener = null; } }
/// <summary> /// Запуск отслеживания ошибок привязки /// </summary> public void AttachBindingErrorListener() { this.errorListener = new BindingErrorListener(); this.errorListener.ErrorCatched += this.OnBindingErrorCatched; }