示例#1
0
        public static void  ShowException(Exception ex)
        {
            var messageBox = new ErrorMessageBox(ex);

            messageBox.WindowStartupLocation = WindowStartupLocation.CenterScreen;

            messageBox.ShowDialog();
        }
示例#2
0
 public static void  Try(Action proc)
 {
     try
     {
         proc();
     }
     catch (Exception ex)
     {
         ErrorMessageBox.ShowException(ex);
     }
 }