PowerToys/Wox.CrashReporter/CrashReporter.cs

30 lines
618 B
C#
Raw Normal View History

2015-01-11 21:52:30 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Wox.CrashReporter
{
public class CrashReporter
{
private Exception exception;
public CrashReporter(Exception e)
{
exception = e;
}
public void Show()
{
if (exception == null) return;
2015-01-16 23:42:12 +08:00
if (exception.InnerException != null)
{
exception = exception.InnerException;
}
2015-01-11 21:52:30 +08:00
ReportWindow reportWindow = new ReportWindow(exception);
reportWindow.Show();
}
}
}