Merge branch 'main' of https://git.bib.de/PBG2H25AGE/WIR-MACHEN-ALLE-ARM
This commit is contained in:
@@ -31,7 +31,10 @@
|
|||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
|
||||||
<Image Grid.Column="5" Grid.Row="1" x:Name="Bild_1"/>
|
<Image Grid.Column="3" Grid.Row="2" x:Name="Bild_1"/>
|
||||||
<Image Grid.Column="7" Grid.Row="1" x:Name="Bild_2"/>
|
<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>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
|
|||||||
@@ -20,18 +20,23 @@ namespace Casino
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class Busfahrer : Window
|
public partial class Busfahrer : Window
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public Busfahrer()
|
public Busfahrer()
|
||||||
{
|
{
|
||||||
rand();
|
InitializeComponent();
|
||||||
LoadCard(55);
|
|
||||||
|
LoadCard(8);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LoadCard(int Bild)
|
private void LoadCard(int Bild)
|
||||||
{
|
{
|
||||||
Database db = new Database();
|
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)
|
private BitmapImage ByteArrayToImage(byte[] bytes)
|
||||||
|
|||||||
Reference in New Issue
Block a user