Esempio n. 1
0
        public static void SendError(Exception ex, string licenseKey, string licenseName, string version, bool showDialog)
        {
            try
            {
                if (OnSendError != null)
                {
                    OnSendError(null, new ExceptionEventArgs(ex));
                }

                /*WOSIService.ErrorHospitalService svc = new WOSIService.ErrorHospitalService();
                 * svc.Url = Properties.Settings.Default.ErrorHospitalServiceURL;
                 * svc.Timeout = 3000;
                 * svc.UseDefaultCredentials = true;*/
                ErrorPacket ePack = GetErrorPacket(ex, licenseKey, licenseName, version);


                if (showDialog)
                {
                    Dialogs.ErrorCaptureDialog dlg = new Dialogs.ErrorCaptureDialog(ePack);
                    if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
                    {
                        //svc.HandleWOSIException(BuildProxy(ePack));
                    }
                }
                else
                {
                    //svc.HandleWOSIException(BuildProxy(ePack));
                }
            }
            catch
            {
            }
        }
Esempio n. 2
0
        public static void SendError(Exception ex, string licenseKey, string licenseName, string version, bool showDialog)
        {
            try
            {
                if (OnSendError != null)
                {
                    OnSendError(null, new ExceptionEventArgs(ex));
                }

                /*WOSIService.ErrorHospitalService svc = new WOSIService.ErrorHospitalService();
                svc.Url = Properties.Settings.Default.ErrorHospitalServiceURL;
                svc.Timeout = 3000;
                svc.UseDefaultCredentials = true;*/
                ErrorPacket ePack = GetErrorPacket(ex, licenseKey, licenseName, version );

                if (showDialog)
                {
                    Dialogs.ErrorCaptureDialog dlg = new Dialogs.ErrorCaptureDialog(ePack);
                    if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
                    {
                        //svc.HandleWOSIException(BuildProxy(ePack));
                    }
                }
                else
                {
                    //svc.HandleWOSIException(BuildProxy(ePack));
                }
            }
            catch
            {
            }
        }