diff --git a/PrintHTML/Helpers/AsyncPrintTask.cs b/PrintHTML/Helpers/AsyncPrintTask.cs index f31c21d..4538ebc 100644 --- a/PrintHTML/Helpers/AsyncPrintTask.cs +++ b/PrintHTML/Helpers/AsyncPrintTask.cs @@ -22,12 +22,12 @@ public static void Exec(bool highPriority, Action action) private static void InternalExec(Action action) { try - { + { action.Invoke(); } - catch (Exception e) + catch (Exception exception) { - MessageBox.Show(e.Message); + MessageBox.Show($"There is a problem while printing.\n\nError Message: {exception.Message}"); } } } diff --git a/PrintHTML/MainWindow.xaml b/PrintHTML/MainWindow.xaml index 6cd8101..bab8cbe 100644 --- a/PrintHTML/MainWindow.xaml +++ b/PrintHTML/MainWindow.xaml @@ -1,7 +1,8 @@  + Title="Flexible Print Application" Height="600" Width="800" WindowStartupLocation="CenterScreen"> + @@ -9,31 +10,42 @@ - + + + + - - + - + - - + Text="<div style="text-align: center; color: red;">PRINT TEMPLATE USER GUIDE</div> <F>= <T>Text Alignment Examples: <L>This text is left-aligned <C>This text is centered <R>This text is right-aligned <F>= <T>Bold Text Examples: <EB> This text will be bold <DB> <F>= <T>Table Example: <J>Product | Stock <J>Laptop | 25 <J>Mouse | 100 <J>Keyboard | 50 <F>= <C>beratarpa.com"/> + + + + -