示例#1
0
 public static void Show(string msg)
 {
     var errorForm = new ErrorForm { Message = msg };
     errorForm.ShowDialog();
     errorForm.Update();
 }
示例#2
0
 public static void Show(Exception e)
 {
     var errorForm = new ErrorForm { Message = String.Format("Message:\r\n{0}\r\n\r\nStack Trace:\r\n{1}", e.Message, e.StackTrace) };
     errorForm.ShowDialog();
     errorForm.Update();
 }