Document: Add member name to pdf viewer window title

This commit is contained in:
lorenz.stechauner committed 2023-10-17 23:10:19 +02:00
1 parent d2b96736bb
commit d992b6a206
1 file changed
+1 -1
+1 -1
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 {