forked from Archeb/opentrace
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTextOutputForm.xeto.cs
More file actions
35 lines (34 loc) · 888 Bytes
/
TextOutputForm.xeto.cs
File metadata and controls
35 lines (34 loc) · 888 Bytes
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 TextOutputForm : Form
{
private TextArea OutputContainer;
public TextOutputForm()
{
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;
}
public void AppendOutput(string Output)
{
OutputContainer.Text += Output + Environment.NewLine;
}
public void ClearOutput()
{
OutputContainer.Text = "";
}
}
}