-
Notifications
You must be signed in to change notification settings - Fork 102
/
Copy pathExceptionalOutputForm.xeto.cs
35 lines (34 loc) · 1.01 KB
/
ExceptionalOutputForm.xeto.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using Eto.Forms;
using Eto.Serialization.Xaml;
using System;
using System.ComponentModel;
using System.Diagnostics;
namespace OpenTrace
{
public partial class ExceptionalOutputForm : Form
{
private TextArea OutputContainer;
public ExceptionalOutputForm()
{
XamlReader.Load(this);
OutputContainer = this.FindChild<TextArea>("OutputContainer");
}
private void CloseButton_Click(object sender, EventArgs e)
{
Close();
}
private void Form_Closing(object sender, CancelEventArgs e)
{
e.Cancel = true;
Visible = false;
}
private void ReportButton_Click(object sender, EventArgs e)
{
Process.Start(new ProcessStartInfo("https://github.com/Archeb/opentrace/issues/new/choose") { UseShellExecute = true });
}
public void AppendOutput(string Output)
{
OutputContainer.Text += Output + Environment.NewLine;
}
}
}