public static void Detach() { _errorListener.ErrorCaught -= OnErrorCaught; _errorListener.Dispose(); _errorListener = null; }
public static void Attach() { _errorListener = new BindingErrorListener(); _errorListener.ErrorCaught += OnErrorCaught; }