Document: Rename DoubleSided to DoublePaged
This commit is contained in:
@ -485,7 +485,7 @@ namespace Elwig.Windows {
|
||||
.ToDictionary(d => d.Member, m => {
|
||||
var docs = m.Docs.Select(d => d.Doc).ToList();
|
||||
foreach (var doc in docs) {
|
||||
doc!.DoubleSided = false;
|
||||
doc!.DoublePaged = false;
|
||||
if (doc is BusinessDocument b)
|
||||
b.IncludeSender = false;
|
||||
};
|
||||
@ -518,7 +518,7 @@ namespace Elwig.Windows {
|
||||
if (docs.Count == 0 || m.Docs[0].Type == DocType.Custom) {
|
||||
docs.Insert(0, new Letterhead(m.Member));
|
||||
}
|
||||
docs.ForEach(doc => doc.DoubleSided = doublePaged);
|
||||
docs.ForEach(doc => doc.DoublePaged = doublePaged);
|
||||
if (docs.Count > 0 && docs[0] is BusinessDocument b)
|
||||
b.IncludeSender = true;
|
||||
return docs;
|
||||
@ -528,7 +528,7 @@ namespace Elwig.Windows {
|
||||
if (printDocs.Count > 0) {
|
||||
try {
|
||||
var print = Document.Merge(printDocs);
|
||||
print.DoubleSided = doublePaged;
|
||||
print.DoublePaged = doublePaged;
|
||||
await print.Generate(new Progress<double>(v => {
|
||||
ProgressBar.Value = 100.0 * emailNum / totalNum + v * printNum / totalNum;
|
||||
}));
|
||||
|
Reference in New Issue
Block a user