protected void OnError(object sender, ErrorEventArgs args) { var onError = Error; if (onError != null) { onError(sender, args); } } }