From d3c232d5503c1bd4116794b83763c15fed79dd52 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Tue, 5 Mar 2024 12:19:38 +0100 Subject: [PATCH] Document: Rename DoubleSided to DoublePaged --- Elwig/Documents/Document.cs | 8 ++++---- Elwig/Documents/Document.cshtml | 4 ++-- Elwig/Helpers/Printing/Pdf.cs | 8 ++++---- Elwig/Windows/MailWindow.xaml.cs | 6 +++--- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Elwig/Documents/Document.cs b/Elwig/Documents/Document.cs index 3a8b897..edae367 100644 --- a/Elwig/Documents/Document.cs +++ b/Elwig/Documents/Document.cs @@ -17,10 +17,10 @@ namespace Elwig.Documents { protected string? _pdfPath; protected string? PdfPath => _pdfPath ?? _pdfFile?.FilePath; public int? TotalPages { get; private set; } - public int? Pages => TotalPages / (DoubleSided ? 2 : 1); + public int? Pages => TotalPages / (DoublePaged ? 2 : 1); public bool ShowFoldMarks = App.Config.Debug; - public bool DoubleSided = false; + public bool DoublePaged = false; public string DataPath; public int CurrentNextSeason; @@ -116,7 +116,7 @@ namespace Elwig.Documents { progress?.Report(GenerationProportion * 100 * i / n); } progress?.Report(GenerationProportion * 100); - var pages = await Pdf.Convert(tmpFiles, pdf.FileName, DoubleSided, new Progress(v => progress?.Report(GenerationProportion * 100 + v * (1 - GenerationProportion)))); + var pages = await Pdf.Convert(tmpFiles, pdf.FileName, DoublePaged, new Progress(v => progress?.Report(GenerationProportion * 100 + v * (1 - GenerationProportion)))); TotalPages = pages.Pages; foreach (var tmp in tmpHtmls) { tmp.Dispose(); @@ -127,7 +127,7 @@ namespace Elwig.Documents { using (var tmpHtml = new TempFile("html")) { await File.WriteAllTextAsync(tmpHtml.FilePath, await Render(), Utils.UTF8); progress?.Report(50.0); - var pages = await Pdf.Convert(tmpHtml.FilePath, pdf.FilePath, DoubleSided); + var pages = await Pdf.Convert(tmpHtml.FilePath, pdf.FilePath, DoublePaged); TotalPages = pages.Pages; } _pdfFile = pdf; diff --git a/Elwig/Documents/Document.cshtml b/Elwig/Documents/Document.cshtml index bdd4d72..731188a 100644 --- a/Elwig/Documents/Document.cshtml +++ b/Elwig/Documents/Document.cshtml @@ -10,7 +10,7 @@ - @if (Model.DoubleSided) { + @if (Model.DoublePaged) {