Skip to content

Commit

Permalink
Update MainWindow.xaml.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Fei-Sheng-Wu authored Sep 30, 2024
1 parent 7506634 commit f0dc7ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PrintDialogX.Test/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ private void Test1ButtonClick(object sender, RoutedEventArgs e)
PrintDialogX.PrintDialog.PrintDialog printDialog = InitializePrintDialog();

//Show PrintDialog with a custom document generation function
//The function will be used to generate the document synchronously while the dialog is openning
//The function will be used to generate the document synchronously while the dialog is opening
if (printDialog.ShowDialog(() => printDialog.Document = GenerateDocument()) == true)
{
//When the "Print" button was clicked, the print job was submitted, and the window was closed
Expand Down

0 comments on commit f0dc7ae

Please sign in to comment.