Sound test

This commit is contained in:
NBTEMP\bib
2026-09-03 11:31:57 +02:00
parent 4c9cd48ec0
commit d038cd9503
6 changed files with 93 additions and 18 deletions
+23 -16
View File
@@ -20,6 +20,29 @@ namespace Casino
/// </summary>
public partial class Slots : Window
{
public Slots()
{
InitializeComponent();
Slot_System sys = new Slot_System();
sys.roll();
while (sys.getFertig())
{
LoadCard(8);
}
}
private void LoadCard(int Bild)
{
Database db = new Database();
byte[] img = db.GetCardImage(Bild);//2-10
kartenBild.Source = ByteArrayToImage(img);
}
private BitmapImage ByteArrayToImage(byte[] bytes)
{
BitmapImage image = new BitmapImage();
@@ -32,21 +55,5 @@ namespace Casino
}
return image;
}
public Slots()
{
InitializeComponent();
LoadCard();
}
private void LoadCard()
{
Database db = new Database();
byte[] img = db.GetCardImage(1);//2-10
kartenBild.Source = ByteArrayToImage(img);
}
}
}