ExceptionExtensions.cs 537 B

123456789101112131415161718192021
  1. using System;
  2. using System.Net;
  3. using System.Windows;
  4. using System.Windows.Controls;
  5. using System.Windows.Documents;
  6. using System.Windows.Ink;
  7. using System.Windows.Input;
  8. using System.Windows.Media;
  9. using System.Windows.Media.Animation;
  10. using System.Windows.Shapes;
  11. namespace WindowsPhone.Recipes.Push.Client
  12. {
  13. public static class ExceptionExtensions
  14. {
  15. public static void Show(this Exception ex, string title = "Error")
  16. {
  17. MessageBox.Show(ex.Message, title, MessageBoxButton.OK);
  18. }
  19. }
  20. }