24 lines
545 B
C#
24 lines
545 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Windows;
|
|
|
|
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;
|
|
LogBox.ScrollToEnd();
|
|
}
|
|
}
|
|
} |