public override void ReportErrors(IHost host, ErrorList errorList) { if (OnDeserializationErrors != null) { OnDeserializationErrors(host, errorList); } if ((host != null) && (host.Children.Count > 0)) { IFormInterface formInterface = host.Children[0] as IFormInterface; if (formInterface == null) { formInterface = (IFormInterface)host.Children[0].FindParent(typeof(IFormInterface)); } if (formInterface != null) { formInterface.EmbedErrors(errorList); return; } } #if (DEBUG) if (HasErrors(errorList)) { ErrorListForm.ShowErrorList(errorList, true); } #endif }
private void DeserializationErrors(IHost host, ErrorList errorList) { if ((host != null) && (host.Children.Count > 0)) { IFormInterface formInterface = host.Children[0] as IFormInterface; if (formInterface == null) { formInterface = (IFormInterface)host.Children[0].FindParent(typeof(IFormInterface)); } if (formInterface != null) { formInterface.EmbedErrors(errorList); return; } } ShowFormWarnings(errorList); }
public override void ReportErrors(IHost host, ErrorList errorList) { if (OnErrors != null) { OnErrors(host, errorList); } if ((host != null) && (host.Children.Count > 0)) { IFormInterface formInterface = host.Children[0] as IFormInterface; if (formInterface == null) { formInterface = (IFormInterface)host.Children[0].FindParent(typeof(IFormInterface)); } if (formInterface != null) { formInterface.EmbedErrors(errorList); } } }