-
Notifications
You must be signed in to change notification settings - Fork 0
/
DebugConsoleForm.xaml.cs
50 lines (34 loc) · 1.03 KB
/
DebugConsoleForm.xaml.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
49
50
using System;
using System.ComponentModel;
using System.Windows;
namespace MapleDesktop2._0
{
/// <summary>
/// Interaction logic for Window1.xaml
/// </summary>
public partial class DebugConsoleForm : Window
{
public DebugConsoleForm()
{
InitializeComponent();
}
//private void rtb_DebugWindow_TextChanged(object sender, EventArgs e)
//{
//}
public void WriteToDebugConsole(string message)
{
//rtb_DebugWindow.Text = rtb_DebugWindow.Text + Environment.NewLine + message;
rtb_DebugWindow.AppendText(Environment.NewLine + message);
rtb_DebugWindow.ScrollToEnd();
}
private void Window_Closing(object sender, CancelEventArgs e)
{
// e.Cancel = true;
MainWindow.debugConsoleOpen = false;
}
private void btn_ClearConsole_Click(object sender, RoutedEventArgs e)
{
rtb_DebugWindow.Document.Blocks.Clear();
}
}
}