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
+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)