diff --git a/DataStore/Settings.cs b/DataStore/Settings.cs index 5443e03..95bdb8b 100644 --- a/DataStore/Settings.cs +++ b/DataStore/Settings.cs @@ -10,6 +10,7 @@ public class Settings public static Settings _instance = new(); public AddressSets addressSets = new(); public Customers customers = new(); + public PdfExportSettings pdfExport { get; set; } = new(); public string settingsPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "logofclient", "config.json"); @@ -52,6 +53,25 @@ public class Settings } } +public class PdfExportSettings +{ + public double cellPaddingTopMm { get; set; } = 5; + public double cellPaddingBottomMm { get; set; } = 5; + public double cellPaddingLeftMm { get; set; } = 5; + public double cellPaddingRightMm { get; set; } = 5; + + public double pageMarginTopMm { get; set; } = 0; + public double pageMarginBottomMm { get; set; } = 0; + public double pageMarginLeftMm { get; set; } = 0; + public double pageMarginRightMm { get; set; } = 0; + + public int rowsPerPage { get; set; } = 7; + public int columnsPerPage { get; set; } = 3; + + public double fontSize { get; set; } = 9; + public double smallFontSize { get; set; } = 6; +} + public class Global { public static Global _instance; @@ -191,4 +211,4 @@ public class Country return null; } -} \ No newline at end of file +} diff --git a/MainWindow.axaml b/MainWindow.axaml index 10bf928..5185187 100644 --- a/MainWindow.axaml +++ b/MainWindow.axaml @@ -28,7 +28,7 @@