25 lines
550 B
C#
25 lines
550 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Windows;
|
|
|
|
//Quinn Grafe Schnecken rennen.
|
|
namespace ModuleManager;
|
|
public partial class LogWindow : Window
|
|
{
|
|
public LogWindow(List<string> logText)
|
|
{
|
|
InitializeComponent();
|
|
foreach (var s in logText)
|
|
{
|
|
LogBox.Text += s + Environment.NewLine;
|
|
}
|
|
}
|
|
|
|
public void AddLogEntry(string logEntry)
|
|
{
|
|
LogBox.Text += logEntry + Environment.NewLine;
|
|
// Force scroll to the bottom
|
|
LogBox.ScrollToEnd();
|
|
}
|
|
}
|