Compare commits
3 Commits
9777c6b5a2
...
98b5198f6f
| Author | SHA1 | Date | |
|---|---|---|---|
| 98b5198f6f | |||
| 1a6459d60b | |||
| 43e6c35beb |
+90
-33
@@ -28,7 +28,7 @@
|
|||||||
<Label FontSize="20" Content="Addressverwaltung" VerticalContentAlignment="Center" />
|
<Label FontSize="20" Content="Addressverwaltung" VerticalContentAlignment="Center" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</TabItem.Header>
|
</TabItem.Header>
|
||||||
<Grid RowDefinitions="2*,*,*">
|
<Grid RowDefinitions="3*,80,2*">
|
||||||
<Grid ColumnDefinitions="*,*" Grid.Row="0">
|
<Grid ColumnDefinitions="*,*" Grid.Row="0">
|
||||||
<!-- Kunden -->
|
<!-- Kunden -->
|
||||||
<Grid Margin="30,30,10,30">
|
<Grid Margin="30,30,10,30">
|
||||||
@@ -78,6 +78,14 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
</MenuItem.Header>
|
</MenuItem.Header>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
<MenuItem x:Name="MnIAdSetDelete" Click="MnIAdSetRename_OnClick" IsEnabled="False">
|
||||||
|
<MenuItem.Header>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<LucideIcon Kind="Trash" Width="12" Height="12" Size="12" />
|
||||||
|
<Label Content="Löschen" VerticalContentAlignment="Center" />
|
||||||
|
</StackPanel>
|
||||||
|
</MenuItem.Header>
|
||||||
|
</MenuItem>
|
||||||
</ContextMenu>
|
</ContextMenu>
|
||||||
</ListBox.ContextMenu>
|
</ListBox.ContextMenu>
|
||||||
</ListBox>
|
</ListBox>
|
||||||
@@ -91,23 +99,10 @@
|
|||||||
</Button>
|
</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
<!-- <Grid Grid.Row="0"> -->
|
<!-- <Grid ColumnDefinitions="*,*,*" Grid.Row="1"> -->
|
||||||
<!-- <StackPanel Orientation="Horizontal" VerticalAlignment="Center" -->
|
<StackPanel Grid.Row="1" Orientation="Horizontal" Spacing="10" HorizontalAlignment="Center"
|
||||||
<!-- HorizontalAlignment="Center"> -->
|
|
||||||
<!-- <TextBox x:Name="TbFilename" Watermark="Dateipfad" Width="400" -->
|
|
||||||
<!-- VerticalContentAlignment="Center" /> -->
|
|
||||||
<!-- <Button x:Name="BtnChooseFile" Margin="10,0,0,0" Click="BtnChooseFile_OnClick"> -->
|
|
||||||
<!-- <StackPanel Orientation="Horizontal"> -->
|
|
||||||
<!-- <LucideIcon Kind="FolderOpen" Width="16" Height="16" Size="16" /> -->
|
|
||||||
<!-- <Label Content="Öffnen" VerticalContentAlignment="Center" /> -->
|
|
||||||
<!-- </StackPanel> -->
|
|
||||||
<!-- </Button> -->
|
|
||||||
<!-- </StackPanel> -->
|
|
||||||
<!-- </Grid> -->
|
|
||||||
<Grid Grid.ColumnDefinitions="*,*" Grid.Row="1">
|
|
||||||
<StackPanel Grid.Column="0" Width="250" Orientation="Vertical" HorizontalAlignment="Right"
|
|
||||||
Margin="0,0,5,0">
|
Margin="0,0,5,0">
|
||||||
<Button HorizontalAlignment="Stretch" HorizontalContentAlignment="Center"
|
<Button Width="250" HorizontalContentAlignment="Center"
|
||||||
Margin="0,0,0,10" IsEnabled="False"
|
Margin="0,0,0,10" IsEnabled="False"
|
||||||
x:Name="BtnCheck" Click="BtnCheck_OnClick">
|
x:Name="BtnCheck" Click="BtnCheck_OnClick">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
@@ -116,7 +111,7 @@
|
|||||||
FontWeight="Bold" />
|
FontWeight="Bold" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Button>
|
</Button>
|
||||||
<Button HorizontalAlignment="Stretch" IsEnabled="False"
|
<Button Width="250" IsEnabled="False"
|
||||||
HorizontalContentAlignment="Center"
|
HorizontalContentAlignment="Center"
|
||||||
Click="BtnCombine_OnClick" x:Name="BtnCombine"
|
Click="BtnCombine_OnClick" x:Name="BtnCombine"
|
||||||
Margin="0,0,0,10">
|
Margin="0,0,0,10">
|
||||||
@@ -126,19 +121,7 @@
|
|||||||
FontWeight="Bold" />
|
FontWeight="Bold" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Button>
|
</Button>
|
||||||
<Button HorizontalAlignment="Stretch" IsEnabled="False"
|
<Button Width="250" IsEnabled="False"
|
||||||
HorizontalContentAlignment="Center" x:Name="BtnRepair"
|
|
||||||
Margin="0,0,0,10">
|
|
||||||
<StackPanel Orientation="Horizontal">
|
|
||||||
<LucideIcon Kind="Hammer" Width="36" Height="36" />
|
|
||||||
<Label Content="Reparieren" VerticalContentAlignment="Center" FontSize="15"
|
|
||||||
FontWeight="Bold" />
|
|
||||||
</StackPanel>
|
|
||||||
</Button>
|
|
||||||
</StackPanel>
|
|
||||||
<StackPanel Grid.Column="1" Width="250" Orientation="Vertical" HorizontalAlignment="Left"
|
|
||||||
Margin="5,0,0,0">
|
|
||||||
<Button HorizontalAlignment="Stretch" IsEnabled="False"
|
|
||||||
HorizontalContentAlignment="Center" x:Name="BtnShorten"
|
HorizontalContentAlignment="Center" x:Name="BtnShorten"
|
||||||
Margin="0,0,0,10">
|
Margin="0,0,0,10">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
@@ -147,7 +130,7 @@
|
|||||||
FontWeight="Bold" />
|
FontWeight="Bold" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Button>
|
</Button>
|
||||||
<Button HorizontalAlignment="Stretch" IsEnabled="False"
|
<Button Width="250" IsEnabled="False"
|
||||||
Click="BtnGenerateLabels_OnClick"
|
Click="BtnGenerateLabels_OnClick"
|
||||||
HorizontalContentAlignment="Center" x:Name="BtnGenerateLabels"
|
HorizontalContentAlignment="Center" x:Name="BtnGenerateLabels"
|
||||||
Margin="0,0,0,10">
|
Margin="0,0,0,10">
|
||||||
@@ -158,8 +141,17 @@
|
|||||||
FontWeight="Bold" />
|
FontWeight="Bold" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Button>
|
</Button>
|
||||||
|
<Button Width="250" IsEnabled="False"
|
||||||
|
HorizontalContentAlignment="Center" x:Name="BtnRepair"
|
||||||
|
Margin="0,0,0,10">
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<LucideIcon Kind="Hammer" Width="36" Height="36" />
|
||||||
|
<Label Content="Reparieren" VerticalContentAlignment="Center" FontSize="15"
|
||||||
|
FontWeight="Bold" />
|
||||||
|
</StackPanel>
|
||||||
|
</Button>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
<!-- </Grid> -->
|
||||||
<Grid Grid.Row="2" Margin="20" IsVisible="True" x:Name="GrdCalcMan">
|
<Grid Grid.Row="2" Margin="20" IsVisible="True" x:Name="GrdCalcMan">
|
||||||
<Image Source="assets/calc_man.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
|
<Image Source="assets/calc_man.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -234,6 +226,71 @@
|
|||||||
<CheckBox HorizontalAlignment="Center" x:Name="CbMergeExportUnmerged" IsChecked="False">Speichere Unverarbeitete in neuem Verteiler</CheckBox>
|
<CheckBox HorizontalAlignment="Center" x:Name="CbMergeExportUnmerged" IsChecked="False">Speichere Unverarbeitete in neuem Verteiler</CheckBox>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
<Grid Grid.Row="2" Margin="20" ColumnDefinitions="*,5*,*" IsVisible="False" x:Name="GrdExportMarginOptions">
|
||||||
|
<StackPanel Grid.Column="1" Orientation="Vertical" Spacing="20">
|
||||||
|
<Grid ColumnDefinitions="*,*,*" ColumnSpacing="20">
|
||||||
|
<StackPanel Orientation="Vertical" Spacing="10">
|
||||||
|
<Grid ColumnDefinitions="*,*">
|
||||||
|
<Label Grid.Column="0" Content="Zellenrand oben (mm)"></Label>
|
||||||
|
<NumericUpDown Grid.Column="1" x:Name="NudExpMargCellPaddingTop" Minimum="0" Maximum="20" Value="5"></NumericUpDown>
|
||||||
|
</Grid>
|
||||||
|
<Grid ColumnDefinitions="*,*">
|
||||||
|
<Label Grid.Column="0" Content="Zellenrand unten (mm)"></Label>
|
||||||
|
<NumericUpDown Grid.Column="1" x:Name="NudExpMargCellPaddingBot" Minimum="0" Maximum="20" Value="5"></NumericUpDown>
|
||||||
|
</Grid>
|
||||||
|
<Grid ColumnDefinitions="*,*">
|
||||||
|
<Label Grid.Column="0" Content="Zellenrand links (mm)"></Label>
|
||||||
|
<NumericUpDown Grid.Column="1" x:Name="NudExpMargCellPaddingLeft" Minimum="0" Maximum="20" Value="5"></NumericUpDown>
|
||||||
|
</Grid>
|
||||||
|
<Grid ColumnDefinitions="*,*">
|
||||||
|
<Label Grid.Column="0" Content="Zellenrand rechts (mm)"></Label>
|
||||||
|
<NumericUpDown Grid.Column="1" x:Name="NudExpMargCellPaddingRight" Minimum="0" Maximum="20" Value="5"></NumericUpDown>
|
||||||
|
</Grid>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<StackPanel Grid.Column="1" Orientation="Vertical" Spacing="10">
|
||||||
|
<Grid ColumnDefinitions="*,*">
|
||||||
|
<Label Content="Zellenabstand oben"></Label>
|
||||||
|
<NumericUpDown Grid.Column="1" x:Name="TbExpMargMarginTop" Minimum="0" Maximum="20" Value="0"></NumericUpDown>
|
||||||
|
</Grid>
|
||||||
|
<Grid ColumnDefinitions="*,*">
|
||||||
|
<Label Content="Zellenabstand unten"></Label>
|
||||||
|
<NumericUpDown Grid.Column="1" x:Name="TbExpMargMarginBottom" Minimum="0" Maximum="20" Value="0"></NumericUpDown>
|
||||||
|
</Grid>
|
||||||
|
<Grid ColumnDefinitions="*,*">
|
||||||
|
<Label Content="Zellenabstand rechts"></Label>
|
||||||
|
<NumericUpDown Grid.Column="1" x:Name="TbExpMargMarginRight" Minimum="0" Maximum="20" Value="0"></NumericUpDown>
|
||||||
|
</Grid>
|
||||||
|
<Grid ColumnDefinitions="*,*">
|
||||||
|
<Label Content="Zellenabstand links"></Label>
|
||||||
|
<NumericUpDown Grid.Column="1" x:Name="TbExpMargMarginLeft" Minimum="0" Maximum="20" Value="0"></NumericUpDown>
|
||||||
|
</Grid>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<StackPanel Grid.Column="2" Orientation="Vertical" Spacing="10">
|
||||||
|
<Grid ColumnDefinitions="*,*">
|
||||||
|
<Label Content="Zeilen pro Seite"></Label>
|
||||||
|
<NumericUpDown Grid.Column="1" x:Name="TbExpMargRowsPerPage" Minimum="1" Maximum="10" Value="3"></NumericUpDown>
|
||||||
|
</Grid>
|
||||||
|
<Grid ColumnDefinitions="*,*">
|
||||||
|
<Label Grid.Column="0" Content="Spalten pro Seite"></Label>
|
||||||
|
<NumericUpDown Grid.Column="1" x:Name="NudExpMargColumnsPerPage" Minimum="1" Maximum="8" Value="7"></NumericUpDown>
|
||||||
|
</Grid>
|
||||||
|
<Grid ColumnDefinitions="*,*">
|
||||||
|
<Label Grid.Column="0" Content="Schriftgröße (groß)"></Label>
|
||||||
|
<NumericUpDown Grid.Column="1" x:Name="NudExpMargFontSize" Minimum="5" Maximum="30" Value="9"></NumericUpDown>
|
||||||
|
</Grid>
|
||||||
|
<Grid ColumnDefinitions="*,*">
|
||||||
|
<Label Grid.Column="0" Content="Schriftgröße (klein)"></Label>
|
||||||
|
<NumericUpDown Grid.Column="1" x:Name="NudExpMargSmallFontSize" Minimum="3" Maximum="30" Value="6"></NumericUpDown>
|
||||||
|
</Grid>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
||||||
|
<Button Content="Start" IsEnabled="False"></Button>
|
||||||
|
</StackPanel>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem IsEnabled="False">
|
<TabItem IsEnabled="False">
|
||||||
|
|||||||
@@ -183,12 +183,14 @@ public partial class MainWindow : Window
|
|||||||
{
|
{
|
||||||
GrdCalcMan.IsVisible = false;
|
GrdCalcMan.IsVisible = false;
|
||||||
GrdCombineTypes.IsVisible = true;
|
GrdCombineTypes.IsVisible = true;
|
||||||
|
GrdExportMarginOptions.IsVisible = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void MakeCalcManVisible()
|
private void MakeCalcManVisible()
|
||||||
{
|
{
|
||||||
GrdCalcMan.IsVisible = true;
|
GrdCalcMan.IsVisible = true;
|
||||||
GrdCombineTypes.IsVisible = false;
|
GrdCombineTypes.IsVisible = false;
|
||||||
|
GrdExportMarginOptions.IsVisible = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void StartCombine(Uri path)
|
private async void StartCombine(Uri path)
|
||||||
@@ -729,6 +731,14 @@ public partial class MainWindow : Window
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async void BtnGenerateLabels_OnClick(object? sender, RoutedEventArgs e)
|
private async void BtnGenerateLabels_OnClick(object? sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
GrdCalcMan.IsVisible = false;
|
||||||
|
GrdCombineTypes.IsVisible = false;
|
||||||
|
GrdExportMarginOptions.IsVisible = true;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void BtnStartGenerateLabels_OnClick(object? sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
var saveDialog = new SaveFileDialog
|
var saveDialog = new SaveFileDialog
|
||||||
{
|
{
|
||||||
|
|||||||
+4
-3
@@ -27,6 +27,7 @@ public class PdfBuilder
|
|||||||
|
|
||||||
// Font settings
|
// Font settings
|
||||||
private readonly double _fontSize = 9;
|
private readonly double _fontSize = 9;
|
||||||
|
private readonly double _smallFontSize = 6;
|
||||||
|
|
||||||
private readonly double _marginBottom = 1; // mm
|
private readonly double _marginBottom = 1; // mm
|
||||||
|
|
||||||
@@ -57,9 +58,9 @@ public class PdfBuilder
|
|||||||
chosenFamily = "Arial";
|
chosenFamily = "Arial";
|
||||||
}
|
}
|
||||||
|
|
||||||
_boldFont = new XFont(chosenFamily, 9, XFontStyleEx.Bold);
|
_boldFont = new XFont(chosenFamily, _fontSize, XFontStyleEx.Bold);
|
||||||
_regularFont = new XFont(chosenFamily, 9, XFontStyleEx.Regular);
|
_regularFont = new XFont(chosenFamily, _fontSize, XFontStyleEx.Regular);
|
||||||
_smallFont = new XFont(chosenFamily, 6, XFontStyleEx.Regular);
|
_smallFont = new XFont(chosenFamily, _smallFontSize, XFontStyleEx.Regular);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void EnsureFontResolverRegistered()
|
private static void EnsureFontResolverRegistered()
|
||||||
|
|||||||
Reference in New Issue
Block a user