private void OnUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
{
if (this.Dispatcher != System.Windows.Threading.Dispatcher.CurrentDispatcher)
{
OnUnhandledException(sender, e);
}
else
{
MessageBox.Show("The Big Red Button of Death! has crashed.\r\n\r\nError:\r\n\r\n" + e.Exception.Message + "\r\n\r\n\r\nStack Trace:" + e.Exception.StackTrace,
"The Big Red Button of Death!", MessageBoxButton.OK, MessageBoxImage.Error);
}
}
public static string AppDataPath