Sound test
This commit is contained in:
+23
-16
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user