Move TempFile to own class

This commit is contained in:
2023-03-11 15:23:52 +01:00
parent aca39be8d4
commit e3e30bfc56
7 changed files with 51 additions and 57 deletions

View File

@ -16,7 +16,7 @@ using WGneu.Helpers;
namespace WGneu.Windows {
public partial class DocumentViewerWindow : Window {
private Utils.TemporaryFile? PdfFile = null;
private TempFile? PdfFile = null;
public DocumentViewerWindow(string title, string path) {
InitializeComponent();
@ -24,7 +24,7 @@ namespace WGneu.Windows {
WebView.Source = new($"file://{path}#view=FitH");
}
public DocumentViewerWindow(string title, Utils.TemporaryFile file) : this(title, file.FilePath) {
public DocumentViewerWindow(string title, TempFile file) : this(title, file.FilePath) {
PdfFile = file;
}