Move TempFile to own class
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user