Rename solution directory to Elwig

This commit is contained in:
2023-03-18 11:04:22 +01:00
parent 649578e8bf
commit 769d80eb81
48 changed files with 7 additions and 11 deletions

View File

@ -0,0 +1,25 @@
using System;
using System.Windows;
using Elwig.Helpers;
namespace Elwig.Windows {
public partial class DocumentViewerWindow : Window {
private TempFile? PdfFile = null;
public DocumentViewerWindow(string title, string path) {
InitializeComponent();
Title = Title + " - " + title;
WebView.Source = new($"file://{path}#view=FitH");
}
public DocumentViewerWindow(string title, TempFile file) : this(title, file.FilePath) {
PdfFile = file;
}
public void OnClosed(object sender, EventArgs evt) {
PdfFile?.Dispose();
PdfFile = null;
}
}
}