Files
WIR-MACHEN-ALLE-ARM/Casino/MainWindow.xaml.cs
T
2026-09-14 21:27:58 +02:00

54 lines
1.4 KiB
C#

using System.Collections.ObjectModel;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace Casino
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
// Alles von Lenard Gerdes
public static int currentUser;
ObservableCollection<User> users = new ObservableCollection<User>();
Database db = new Database();
public MainWindow()
{
InitializeComponent();
users = db.GetUser();
setup();
}
private void Slots_Click(object sender, RoutedEventArgs e)
{
Slots slotsWindow = new Slots();
slotsWindow.Show();
}
private void Busfahrer_Click(object sender, RoutedEventArgs e)
{
Busfahrer slotsWindow = new Busfahrer();
slotsWindow.Show();
}
private void setup()
{
TxtName.Text = "User: " + users[currentUser].Name.ToString();
TxtKonto.Text = "Konto: " + users[currentUser].Geld.ToString();
}
}
}