Ejemplo n.º 1
0
        public static void ShowAppError(Exception ex)
        {
            frmException frm = CreateExceptionForm(ex);

            System.Media.SystemSounds.Exclamation.Play();
            frm.ShowDialog();
        }
Ejemplo n.º 2
0
        public static void ShowAppError(string summary, Exception ex)
        {
            frmException frm = CreateExceptionForm(ex);

            frm.txtDetailMsg.Text = "ERROR SUMMARY: " + summary + "\r\n" + "\r\n" + frm.txtDetailMsg.Text;
            if (!String.IsNullOrEmpty(summary))
            {
                frm.txtShortMsg.Text = summary;
            }

            System.Media.SystemSounds.Exclamation.Play();
            frm.ShowDialog();
        }