protected virtual void OnError(ErrorEventArgs e) { var handler = Error; if (handler != null) { handler(this, e); } }