/// <summary> /// Relays the ValidationFalureEventArgs, /// calling the OnValidationFailure event. /// </summary> /// <notes> /// If the argument is null then /// OnValidationFailure will not be called /// </notes> /// <param name="e"></param> public void ValidationFailureEventHandler(ValidationFailureEventArgs e) { if (OnValidationFailure != null) { OnValidationFailure(e); } }
public static void ValidationFailureEventHandler(ValidationFailureEventArgs e) { Console.WriteLine(e.Failure.ValidationType + ": " + e.Failure.Details); }