Exemple #1
0
        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
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
                }
            }
        }