/// <summary>
 ///     
 /// </summary>
 public static void Detach()
 {
     _errorListener.ErrorCatched -= OnErrorCatched;
     _errorListener.Dispose();
     _errorListener = null;
 }
 /// <summary>
 ///     
 /// </summary>
 public static void Attach()
 {
     _errorListener = new BindingErrorListener();
     _errorListener.ErrorCatched += OnErrorCatched;
 }