private static void OnBadRequest(string file) { if (BadRequest != null) { BadRequest(file, EventArgs.Empty); } }