Document: Add member name to pdf viewer window title
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user