1
/******************************************************************************/
2 /* SlunkCrypt, by LoRd_MuldeR <MuldeR2@GMX.de> */
3 /* This work has been released under the CC0 1.0 Universal license! */
4 /******************************************************************************/
9 namespace com
.muldersoft
.slunkcrypt
.gui
11 public partial class App
: Application
15 AppDomain
.CurrentDomain
.UnhandledException
+= new UnhandledExceptionEventHandler(ExceptionHandler
);
18 private static void ExceptionHandler(object sender
, UnhandledExceptionEventArgs args
)
21 if (!ReferenceEquals(exception
= args
.ExceptionObject
as Exception
, null))
23 MessageBox
.Show("Unhandeled exception error:\n\n" + exception
.Message
, exception
.GetType().Name
, MessageBoxButton
.OK
, MessageBoxImage
.Error
);
28 protected void FrameworkElement_PreviewUserInputEvent(object sender
, RoutedEventArgs e
)
30 FrameworkElement element
= sender
as FrameworkElement
;
31 if (!ReferenceEquals(element
, null))
33 if (!element
.IsHitTestVisible
)