Exemple #1
0
 public static void ShowMessageBox(string module, string troubleshooting, Exception ex)
 {
     LogHelper.Write(module, ex);
     //MessageBox.Show(strMsg, Constants.MSG_SYSTEMERROR, MessageBoxButtons.OK, MessageBoxIcon.Error);
     FrmMessageBox frmMsg = new FrmMessageBox();
     frmMsg.Module = module;
     frmMsg.Exception = ex;
     frmMsg.TroubleShooting = troubleshooting;
     frmMsg.ShowDialog();
 }
Exemple #2
0
 public static void ShowMessageBox(string module, string troubleshooting, Exception ex)
 {
     //ex.TargetSite()
     //string strMsg = "";
     //strMsg = "Message:" + ex.Message + "\r\n";
     //strMsg += "Source:" + ex.Source + "\r\n";
     //strMsg += "TargetSite:" + ex.TargetSite + "\r\n";
     //strMsg += "StackTrace:" + ex.StackTrace + "\r\n";
     //MessageBox.Show(strMsg, Constants.MSG_SYSTEMERROR, MessageBoxButtons.OK, MessageBoxIcon.Error);
     LogHelper.Write(module, ex);
     FrmMessageBox frmMsg = new FrmMessageBox();
     frmMsg.Module = module;
     frmMsg.Exception = ex;
     frmMsg.TroubleShooting = troubleshooting;
     frmMsg.ShowDialog();
 }