Closed makeProjectGreatAgain closed 3 years ago
Thanks looks good, I'll try to run it up and give it a quick test shortly
I also added this test, you can use it
[Test]
[Ignore("UI")]
public static void TestRunManually()
{
var thread = new Thread(() =>
{
Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfoByIetfLanguageTag("ru");
Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfoByIetfLanguageTag("ru");
var er = new ExceptionReporter
{
Config =
{
AppName = "PhotoFuzz",
AppVersion = "1.0",
CompanyName = "photofuzz",
SendMethod = ReportSendMethod.SimpleMAPI,
EmailReportAddress = "PhotoFuzz@gmail.com",
ShowLessDetailButton = true,
TakeScreenshot = true,
ReportTemplateFormat = TemplateFormat.Markdown,
ReportCustomTemplate = "Done!",
AttachmentFilename = $"{DateTime.UtcNow.ToString("dd-MM-yy_HH-mm")}_report",
FilesToAttach = new[] {"app.log"}
}
};
var ex = new Exception("Test Exception");
er.Show(ex);
});
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
thread.Join();
}
I noticed the whole thing doesn't work (including test) if you open the solution ExceptionReport.NET-traditional.sln
So we might have to ditch that one at the same time - if that's reasonable...
Added localization Made buttons a little bigger Tried not to change anything else