ZKuP/ZKuP/KartenTausch.xaml
Marcus 71952c9f11 Offline detection and acting refactored
Resolved Bug with CardReader only working once
Resolved Bug with Message "Card does not exist", even if it exists
2025-09-19 10:33:07 +02:00

41 lines
2.3 KiB
XML

<mah:MetroWindow x:Class="ZKuP.KartenTausch"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:local="clr-namespace:ZKuP"
mc:Ignorable="d"
Title="Rote Karte zu Grüner Karte tauschen" Height="250" Width="400" Loaded="Window_Loaded" LocationChanged="Window_LocationChanged">
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="1.5*"/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0">
<TextBlock Text="Zurückgegebene Rote Karte:" Foreground="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
<ComboBox x:Name="cbRot" SelectionChanged="cbRot_SelectionChanged" PreviewTextInput="cbRot_PreviewTextInput"/>
<TextBlock x:Name="lblRotInfo" Text="" Margin="0,5,0,0" TextAlignment="Center" Foreground="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
</StackPanel>
<Border x:Name="borderKartenleserRot" BorderBrush="Red" BorderThickness="1" CornerRadius="5" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="10,40,10,0" Panel.ZIndex="100">
<TextBlock Text="Karte jetzt auf den Kartenleser legen!" Margin="5,1,5,1"/>
</Border>
<StackPanel Grid.Row="1">
<TextBlock Text="Ausgegebene Grün Karte:" Foreground="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
<TextBox x:Name="tbGruen" TextChanged="tbGruen_TextChanged"/>
</StackPanel>
<Border x:Name="borderKartenleserGruen" Grid.Row="1" Visibility="Collapsed" BorderBrush="Red" BorderThickness="1" CornerRadius="5" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="10,0,10,-15" Panel.ZIndex="100">
<TextBlock Text="Karte jetzt auf den Kartenleser legen!" Margin="5,1,5,1"/>
</Border>
<Button x:Name="btnClose" Content="Bestätigen" Grid.Row="2" Height="30" HorizontalAlignment="Right" VerticalAlignment="Bottom" Click="btnClose_Click"/>
</Grid>
</mah:MetroWindow>