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 EmbeddedErrorsClicked(object sender, EventArgs args) { ErrorListForm.ShowErrorList(_errorList, true); }