Changed text viewer title to modlist title

This commit is contained in:
erri120 2019-10-11 15:04:33 +02:00
parent 299f22b1fc
commit ec4ea0898d
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135
3 changed files with 4 additions and 7 deletions

View File

@ -273,7 +273,7 @@ namespace Wabbajack
}
}
var viewer = new TextViewer(text);
var viewer = new TextViewer(text, _ModListName);
viewer.Show();
}
}

View File

@ -11,6 +11,5 @@
Title="TextViewer" Height="450" Width="800">
<Grid>
<TextBlock FontSize="20" Name="TextBlock" TextWrapping="Wrap"/>
<!--<RichTextBox FontSize="15" Name="RichTextBox" AllowDrop="False" IsReadOnly="True"/>-->
</Grid>
</Window>

View File

@ -1,16 +1,14 @@
using System;
using System.Windows;
using System.Windows.Documents;
using System.Windows;
namespace Wabbajack.UI
{
public partial class TextViewer : Window
{
public TextViewer(string text)
public TextViewer(string text, string title)
{
InitializeComponent();
TextBlock.Text = text;
Title = title;
}
}
}