mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-27 22:22:32 +00:00
36 lines
836 B
C#
36 lines
836 B
C#
|
using System;
|
|||
|
using System.Windows.Forms;
|
|||
|
|
|||
|
namespace CodeImp.DoomBuilder.GZBuilder.Controls
|
|||
|
{
|
|||
|
public partial class ConsoleDocker : UserControl
|
|||
|
{
|
|||
|
#if DEBUG
|
|||
|
public ConsoleDocker() {
|
|||
|
InitializeComponent();
|
|||
|
}
|
|||
|
|
|||
|
public void TraceInHeader(string message) {
|
|||
|
label1.Text = message;
|
|||
|
}
|
|||
|
|
|||
|
public void Trace(string message) {
|
|||
|
Trace(message, true);
|
|||
|
}
|
|||
|
|
|||
|
public void Trace(string message, bool addLineBreak) {
|
|||
|
textBox.AppendText(message + (addLineBreak ? Environment.NewLine : ""));
|
|||
|
}
|
|||
|
|
|||
|
public void Clear() {
|
|||
|
textBox.Clear();
|
|||
|
}
|
|||
|
|
|||
|
//events
|
|||
|
private void buttonClear_Click(object sender, EventArgs e) {
|
|||
|
textBox.Clear();
|
|||
|
}
|
|||
|
#endif
|
|||
|
}
|
|||
|
}
|