Compare commits

...
2 Commits
+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();
}
};
} }
} }
} }