-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
/
LogWindow.cs
39 lines (33 loc) · 962 Bytes
/
LogWindow.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
using System;
using Eto.Forms;
namespace MonoGame.Tools.Pipeline
{
public partial class LogWindow : Form
{
public static Button ButtonCopy;
private Clipboard _clipboard;
public LogWindow()
{
InitializeComponent();
ButtonCopy = _buttonCopy;
Style = "LogWindow";
_clipboard = new Clipboard();
}
public string LogText
{
get { return _textAreaLog.Text; }
set { _textAreaLog.Text = value; }
}
private void LogWindow_Closed(object sender, EventArgs e)
{
PipelineSettings.Default.ErrorMessage = string.Empty;
PipelineSettings.Default.Save();
Application.Instance.Quit();
}
private void ButtonCopy_Click(object sender, EventArgs e)
{
_clipboard.Clear();
_clipboard.Text = _textAreaLog.Text;
}
}
}