diff SilverlightGlimpse/SilverlightValidation/Views/UserListView.xaml.cs @ 72:177a9d1eba10

Latest version
author Steven Hollidge <stevenhollidge@hotmail.com>
date Mon, 23 Apr 2012 17:57:21 +0100
parents 96e6fbd70f49
children
line wrap: on
line diff
--- a/SilverlightGlimpse/SilverlightValidation/Views/UserListView.xaml.cs	Mon Apr 23 14:54:24 2012 +0100
+++ b/SilverlightGlimpse/SilverlightValidation/Views/UserListView.xaml.cs	Mon Apr 23 17:57:21 2012 +0100
@@ -1,4 +1,5 @@
-using System.Windows.Browser;
+using System;
+using System.Windows.Browser;
 using System.Windows.Input;
 using SilverlightValidation.Data;
 using SilverlightValidation.ViewModels;
@@ -24,5 +25,11 @@
             if (e.Key != Key.Tab)
                 e.Handled = true;
         }
+
+        private void btnThrowException_Click(object sender, System.Windows.RoutedEventArgs e)
+        {
+            throw new Exception("Oh dear we've hit an exception!",
+                                new Exception("This is an inner exception"));
+        }
     }
 }