public static void ShowAppError(Exception ex) { frmException frm = CreateExceptionForm(ex); System.Media.SystemSounds.Exclamation.Play(); frm.ShowDialog(); }
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(); }