mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 03:37:10 +08:00
27 lines
546 B
C#
27 lines
546 B
C#
using System;
|
|
|
|
namespace Wox.CrashReporter
|
|
{
|
|
public class CrashReporter
|
|
{
|
|
private Exception exception;
|
|
|
|
public CrashReporter(Exception e)
|
|
{
|
|
exception = e;
|
|
}
|
|
|
|
public void Show()
|
|
{
|
|
if (exception == null) return;
|
|
|
|
if (exception.InnerException != null)
|
|
{
|
|
exception = exception.InnerException;
|
|
}
|
|
ReportWindow reportWindow = new ReportWindow(exception);
|
|
reportWindow.Show();
|
|
}
|
|
}
|
|
}
|