Document: Add member name to pdf viewer window title

This commit is contained in:
2023-10-17 23:10:19 +02:00
parent d2b96736bb
commit d992b6a206

View File

@ -134,7 +134,7 @@ namespace Elwig.Documents {
public void Show() {
if (_pdfFile == null) throw new InvalidOperationException("Pdf file has not been generated yet");
Pdf.Show(_pdfFile.NewReference(), Title);
Pdf.Show(_pdfFile.NewReference(), Title + (this is BusinessDocument b ? $" - {b.Member.Name}" : ""));
}
private class InternalDocument : Document {