Login fenster öffnen
This commit is contained in:
@@ -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
@@ -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; }
|
||||||
|
|||||||
Reference in New Issue
Block a user