From 7c73170b460fe1f43353acc0f67556c2ba03bc9e Mon Sep 17 00:00:00 2001 From: Elias Fierke Date: Sun, 14 Dec 2025 14:33:07 +0100 Subject: [PATCH] [chore:] implemented label generation button handler --- MainWindow.axaml.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/MainWindow.axaml.cs b/MainWindow.axaml.cs index 38d6635..c98e327 100644 --- a/MainWindow.axaml.cs +++ b/MainWindow.axaml.cs @@ -554,4 +554,15 @@ public partial class MainWindow : Window StartCombine(list, Convert.ToInt32(LstCustomers.SelectedItem.ToString().Split(" - ")[0]), "symdiff"); } + + private void BtnGenerateLabels_OnClick(object? sender, RoutedEventArgs e) + { + var builder = new PdfBuilder(); + + builder.CreateAddressLabelPdfFromAddressSetWithPlaceholder( + Convert.ToInt32(LstCustomerAdressSets.SelectedItems[0].ToString().Split(" - ")[0]), + "Company Logo/Info", + "output.pdf" + ); + } } \ No newline at end of file