Busfahrer oberfläche
This commit is contained in:
@@ -31,7 +31,10 @@
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
|
||||
<Image Grid.Column="5" Grid.Row="1" x:Name="Bild_1"/>
|
||||
<Image Grid.Column="7" Grid.Row="1" x:Name="Bild_2"/>
|
||||
<Image Grid.Column="3" Grid.Row="2" x:Name="Bild_1"/>
|
||||
<Image Grid.Column="5" Grid.Row="2" x:Name="Bild_2"/>
|
||||
<Image Grid.Column="7" Grid.Row="2" x:Name="Bild_3"/>
|
||||
<Image Grid.Column="9" Grid.Row="2" x:Name="Bild_4"/>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user