public static void ShowDialog(String title, String msg, Exception e, SkinBundle bundle) { ErrorDialogEx dlg = new ErrorDialogEx(); if (bundle != null) bundle.SetBundle(dlg); dlg.Title = title; dlg.lblError.Text = e.GetType().Name + ": " + e.Message + "\n" + e.StackTrace; dlg.lblMsg.Text = msg; dlg.ShowDialog(); }
public static void ShowDialog(String title, String msg, Exception e, SkinBundle bundle) { ErrorDialogEx dlg = new ErrorDialogEx(); if (bundle != null) { bundle.SetBundle(dlg); } dlg.Title = title; dlg.lblError.Text = e.GetType().Name + ": " + e.Message + "\n" + e.StackTrace; dlg.lblMsg.Text = msg; dlg.ShowDialog(); }