Rename PdfViewerWindow to DocumentViewerWindow

This commit is contained in:
2023-03-05 20:17:15 +01:00
parent a6264d7a64
commit c423a4c951
4 changed files with 6 additions and 6 deletions

View File

@ -48,7 +48,7 @@ namespace WGneu.Documents {
}
public static void Display(string title, string path) {
var w = new PdfViewerWindow(title, path);
var w = new DocumentViewerWindow(title, path);
w.Show();
}
}

View File

@ -13,7 +13,7 @@
<Compile Update="Windows\DeliveryReceptionWindow.xaml.cs">
<SubType>Code</SubType>
</Compile>
<Compile Update="Windows\PdfViewerWindow.xaml.cs">
<Compile Update="Windows\DocumentViewerWindow.xaml.cs">
<SubType>Code</SubType>
</Compile>
</ItemGroup>
@ -27,7 +27,7 @@
<Page Update="Windows\DeliveryReceptionWindow.xaml">
<SubType>Designer</SubType>
</Page>
<Page Update="Windows\PdfViewerWindow.xaml">
<Page Update="Windows\DocumentViewerWindow.xaml">
<SubType>Designer</SubType>
</Page>
</ItemGroup>

View File

@ -1,4 +1,4 @@
<Window x:Class="WGneu.Windows.PdfViewerWindow"
<Window x:Class="WGneu.Windows.DocumentViewerWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

View File

@ -13,8 +13,8 @@ using System.Windows.Media.Imaging;
using System.Windows.Shapes;
namespace WGneu.Windows {
public partial class PdfViewerWindow : Window {
public PdfViewerWindow(string title, string path) {
public partial class DocumentViewerWindow : Window {
public DocumentViewerWindow(string title, string path) {
InitializeComponent();
Title = Title + " - " + title;
WebView.Source = new("file://" + path);