Exemple #1
0
        public static void ShowAppError(Exception ex)
        {
            frmException frm = CreateExceptionForm(ex);

            System.Media.SystemSounds.Exclamation.Play();
            frm.ShowDialog();
        }
Exemple #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();
        }