Busfahrer

This commit is contained in:
2026-09-07 14:28:32 +02:00
parent abe9867cb1
commit a0e5056d30
4 changed files with 111 additions and 5 deletions
+12 -2
View File
@@ -23,7 +23,8 @@ namespace Casino
public Blackjack()
{
InitializeComponent();
LoadCard(28);
rand();
LoadCard(55);
}
private void LoadCard(int Bild)
@@ -31,7 +32,7 @@ namespace Casino
Database db = new Database();
byte[] img = db.GetCardImage(Bild);//2-10
Bild_1.Source = ByteArrayToImage(img);
Dealer_Bild_1.Source = ByteArrayToImage(img);
}
private BitmapImage ByteArrayToImage(byte[] bytes)
@@ -46,5 +47,14 @@ namespace Casino
}
return image;
}
private int rand()
{
Random ran = new Random();
int temp = ran.Next(13, 66);
Console.WriteLine(temp);
return 0;
}
}
}