Mercurial > silverbladetech
diff SilverlightGlimpse/SilverlightValidation/Views/UserView.xaml.cs @ 79:5172a9b9800c
Ready to upload to codeplex
author | Steven Hollidge <stevenhollidge@hotmail.com> |
---|---|
date | Mon, 23 Apr 2012 23:07:23 +0100 |
parents | dd6bcd2535b6 |
children |
line wrap: on
line diff
--- a/SilverlightGlimpse/SilverlightValidation/Views/UserView.xaml.cs Mon Apr 23 22:43:53 2012 +0100 +++ b/SilverlightGlimpse/SilverlightValidation/Views/UserView.xaml.cs Mon Apr 23 23:07:23 2012 +0100 @@ -21,7 +21,7 @@ this.DataContext = vm; // uncomment this exception to view exception on startup - //ThrowNestedException(); + //ThrowException(); } private void DatePicker_KeyDown(object sender, KeyEventArgs e) @@ -32,13 +32,12 @@ private void btnThrowException_OnClick(object sender, RoutedEventArgs e) { - ThrowNestedException(); + ThrowException(); } - private void ThrowNestedException() + private void ThrowException() { - throw new Exception("Oh dear we've hit an exception!", - new Exception("This is an inner exception")); + throw new Exception("Oh dear we've hit an exception!"); } } } \ No newline at end of file