示例#1
0
        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();
        }
示例#2
0
        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();
        }