forked from MonoGame/MonoGame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LogWindow.eto.cs
48 lines (36 loc) · 1.35 KB
/
LogWindow.eto.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
36
37
38
39
40
41
42
43
44
45
46
47
48
using Eto.Forms;
using Eto.Drawing;
namespace MonoGame.Tools.Pipeline
{
public partial class LogWindow : Form
{
private TextArea _textAreaLog;
private Button _buttonCopy;
private void InitializeComponent()
{
Title = "Crash Report";
Size = new Size(800, 400);
var layout1 = new DynamicLayout();
layout1.Padding = new Padding(4);
layout1.Spacing = new Size(4, 4);
var layout2 = new DynamicLayout();
layout2.BeginHorizontal();
var label1 = new Label();
label1.VerticalAlignment = VerticalAlignment.Bottom;
label1.Text = "Pipeline Tool has crashed, please copy the following exception when reporting the error: ";
layout2.Add(label1, true, true);
_buttonCopy = new Button();
_buttonCopy.Text = "Copy to Clipboard";
if (!Global.UseHeaderBar)
layout2.Add(_buttonCopy, false, true);
layout1.Add(layout2, true, false);
_textAreaLog = new TextArea();
_textAreaLog.ReadOnly = true;
_textAreaLog.Wrap = false;
layout1.Add(_textAreaLog, true, true);
Content = layout1;
Closed += LogWindow_Closed;
_buttonCopy.Click += ButtonCopy_Click;
}
}
}