static void Main() { //using (var game = new Game1()) // game.Run(); Login l = new Login(); l.ShowDialog(); }
private void ShowLogin() { using (var login = new Login()) login.ShowDialog(); btnPlay.Enabled = isIngelogd; btnSettings.Enabled = isIngelogd; if (isIngelogd) { isIngelogd = false; } else { isIngelogd = true; btnPlay.Text = "Play"; btnLogin.Text = "Logout"; } }