Busfahrer
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user