Weitere überarbeitung für Mainwindow
This commit is contained in:
@@ -19,12 +19,13 @@ namespace Casino
|
||||
{
|
||||
public static int currentUser;
|
||||
ObservableCollection<User> users = new ObservableCollection<User>();
|
||||
Database db = new Database();
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
users = db.GetUser();
|
||||
setup();
|
||||
|
||||
TxtName.Text = "User: " + users[currentUser].Name.ToString();
|
||||
TxtKonto.Text = "Konto: " + users[currentUser].Geld.ToString();
|
||||
}
|
||||
private void Slots_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
@@ -45,5 +46,13 @@ namespace Casino
|
||||
Busfahrer slotsWindow = new Busfahrer();
|
||||
slotsWindow.Show();
|
||||
}
|
||||
|
||||
private void setup()
|
||||
{
|
||||
|
||||
TxtName.Text = "User: " + users[currentUser].Name.ToString();
|
||||
TxtKonto.Text = "Konto: " + users[currentUser].Geld.ToString();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user