[chore:] added address patch

This commit is contained in:
Elias Fierke
2025-10-03 16:36:22 +02:00
parent afc3a78358
commit bb65df9ea2
5 changed files with 541 additions and 49 deletions

View File

@@ -44,7 +44,7 @@
<ListBox Grid.Row="1"
Margin="0,5,0,0"
x:Name="LstCustomers"
Background="AliceBlue"
Background="AliceBlue" SelectionChanged="LstCustomers_OnSelectionChanged"
SelectionMode="Single" />
</Grid>
@@ -63,11 +63,13 @@
<ListBox Grid.Row="1"
x:Name="LstCustomerAdressSets"
SelectionChanged="LstCustomerAdressSets_OnSelectionChanged"
Background="AliceBlue"
Margin="0,5,0,5"
SelectionMode="Multiple,Toggle" />
<Button Grid.Row="2" HorizontalAlignment="Stretch">
<Button Grid.Row="2" HorizontalAlignment="Stretch" x:Name="BtnCustomerAddressSetImport"
Click="BtnCustomerAddressSetImport_OnClick">
<StackPanel Orientation="Horizontal">
<LucideIcon Kind="Plus" Width="16" Height="16" Size="16" />
<Label Content="Importieren" VerticalContentAlignment="Center" />
@@ -92,7 +94,7 @@
<StackPanel Grid.Column="0" Width="250" Orientation="Vertical" HorizontalAlignment="Right"
Margin="0,0,5,0">
<Button HorizontalAlignment="Stretch" HorizontalContentAlignment="Center"
Margin="0,0,0,10"
Margin="0,0,0,10" IsEnabled="False"
x:Name="BtnCheck" Click="BtnCheck_OnClick">
<StackPanel Orientation="Horizontal">
<LucideIcon Kind="SpellCheck" Width="36" Height="36" />
@@ -100,7 +102,7 @@
FontWeight="Bold" />
</StackPanel>
</Button>
<Button HorizontalAlignment="Stretch" IsEnabled="True"
<Button HorizontalAlignment="Stretch" IsEnabled="False"
HorizontalContentAlignment="Center"
Click="BtnCombine_OnClick" x:Name="BtnCombine"
Margin="0,0,0,10">
@@ -111,7 +113,7 @@
</StackPanel>
</Button>
<Button HorizontalAlignment="Stretch" IsEnabled="False"
HorizontalContentAlignment="Center"
HorizontalContentAlignment="Center" x:Name="BtnRepair"
Margin="0,0,0,10">
<StackPanel Orientation="Horizontal">
<LucideIcon Kind="Hammer" Width="36" Height="36" />
@@ -123,7 +125,7 @@
<StackPanel Grid.Column="1" Width="250" Orientation="Vertical" HorizontalAlignment="Left"
Margin="5,0,0,0">
<Button HorizontalAlignment="Stretch" IsEnabled="False"
HorizontalContentAlignment="Center"
HorizontalContentAlignment="Center" x:Name="BtnShorten"
Margin="0,0,0,10">
<StackPanel Orientation="Horizontal">
<LucideIcon Kind="ListX" Width="36" Height="36" />
@@ -132,7 +134,7 @@
</StackPanel>
</Button>
<Button HorizontalAlignment="Stretch" IsEnabled="False"
HorizontalContentAlignment="Center"
HorizontalContentAlignment="Center" x:Name="BtnGenerateLabels"
Margin="0,0,0,10">
<StackPanel Orientation="Horizontal">
<LucideIcon Kind="Tags" Width="36" Height="36" />
@@ -187,7 +189,7 @@
<StackPanel Orientation="Vertical">
<Grid ColumnDefinitions="400,*">
<Label Grid.Column="0">config-Datei</Label>
<StackPanel Grid.Column="1" Orientation="Horizontal">
<StackPanel Grid.Column="1" Orientation="Horizontal" Spacing="5">
<TextBox x:Name="TbConfigPath" HorizontalAlignment="Stretch"
Watermark="/home/username/.config/logofclient/config.json" />
<Button>
@@ -211,8 +213,10 @@
</TabItem.Header>
<Grid ColumnDefinitions="300,*">
<Grid RowDefinitions="*,60">
<ListBox x:Name="LstSettingsCustomers" />
<Button Grid.Row="1" HorizontalAlignment="Stretch"
<ListBox x:Name="LstSettingsCustomers"
SelectionChanged="LstSettingsCustomers_OnSelectionChanged" />
<Button Grid.Row="1" HorizontalAlignment="Stretch" x:Name="BtnSettingsAddCustomer"
Click="BtnSettingsAddCustomer_OnClick"
HorizontalContentAlignment="Center">
<StackPanel Orientation="Horizontal">
<LucideIcon Kind="Plus" Width="32" Height="32" />
@@ -230,6 +234,7 @@
<Grid ColumnDefinitions="150,*">
<Label Content="Name" />
<TextBox Grid.Column="1" Watermark="Kundenbezeichnung"
TextChanged="TbSettingsCustomerName_OnTextChanged"
HorizontalAlignment="Stretch"
x:Name="TbSettingsCustomerName" />
</Grid>
@@ -237,6 +242,7 @@
<Label Content="Beschreibung" />
<TextBox Grid.Column="1" Watermark="Kundenbeschreibung"
HorizontalAlignment="Stretch"
TextChanged="TbSettingsCustomerDescription_OnTextChanged"
x:Name="TbSettingsCustomerDescription" />
</Grid>
<Grid ColumnDefinitions="150,*">
@@ -246,6 +252,8 @@
x:Name="TbSettingsCustomerPatchInfo" />
</Grid>
<Button HorizontalAlignment="Stretch"
x:Name="BtnSettingsImportCustomerAddressPatch"
Click="BtnSettingsImportCustomerAddressPatch_OnClick"
HorizontalContentAlignment="Center">
<StackPanel Orientation="Horizontal">
<LucideIcon Kind="Route" Width="16" Height="16" Size="16" />
@@ -253,6 +261,15 @@
VerticalContentAlignment="Center" />
</StackPanel>
</Button>
<Button HorizontalAlignment="Stretch" x:Name="BtnSettingsSaveCustomerData"
Click="BtnSettingsSaveCustomerData_OnClick"
HorizontalContentAlignment="Center">
<StackPanel Orientation="Horizontal">
<LucideIcon Kind="Save" Width="16" Height="16" Size="16" />
<Label FontSize="16" Content="Speichern"
VerticalContentAlignment="Center" />
</StackPanel>
</Button>
<Button Background="#99963434" HorizontalAlignment="Stretch"
HorizontalContentAlignment="Center">
<StackPanel Orientation="Horizontal">