Login fenster öffnen

This commit is contained in:
NBTEMP\bib
2026-08-20 16:03:46 +02:00
parent 279ea709cd
commit 2091f5e903
2 changed files with 15 additions and 4 deletions
+11
View File
@@ -20,12 +20,23 @@ namespace Casino
{ {
InitializeComponent(); InitializeComponent();
//copilot hilfe
Loaded += (_, _) =>
{
var window = new Login(); var window = new Login();
window.Owner = this; window.Owner = this;
window.ShowDialog(); window.ShowDialog();
if(window.DialogResult == false)
{
Close();
}
};
} }
} }
} }
+1 -1
View File
@@ -8,7 +8,7 @@ namespace Casino
{ {
public class User public class User
{ {
public string ID { get; } public string ID { get; set; }
public string Name { get; set; } public string Name { get; set; }
public int Alter { get; set; } public int Alter { get; set; }
public string Passwort { get; set; } public string Passwort { get; set; }