Busfahrer oberfläche

This commit is contained in:
2026-09-07 15:09:09 +02:00
parent a0e5056d30
commit 57886bdac7
2 changed files with 14 additions and 6 deletions
+5 -2
View File
@@ -31,7 +31,10 @@
</Grid.RowDefinitions>
<Image Grid.Column="5" Grid.Row="1" x:Name="Bild_1"/>
<Image Grid.Column="7" Grid.Row="1" x:Name="Bild_2"/>
<Image Grid.Column="3" Grid.Row="2" x:Name="Bild_1"/>
<Image Grid.Column="5" Grid.Row="2" x:Name="Bild_2"/>
<Image Grid.Column="7" Grid.Row="2" x:Name="Bild_3"/>
<Image Grid.Column="9" Grid.Row="2" x:Name="Bild_4"/>
</Grid>
</Window>
+9 -4
View File
@@ -20,18 +20,23 @@ namespace Casino
/// </summary>
public partial class Busfahrer : Window
{
public Busfahrer()
{
rand();
LoadCard(55);
InitializeComponent();
LoadCard(8);
}
private void LoadCard(int Bild)
{
Database db = new Database();
byte[] img = db.GetCardImage(Bild);//2-10
byte[] img = db.GetCardImage(Bild);
Bild_4.Source = ByteArrayToImage(img);
Bild_1.Source = ByteArrayToImage(img);
}
private BitmapImage ByteArrayToImage(byte[] bytes)