Example #1
0
 static void Main()
 {
     //using (var game = new Game1())
     //    game.Run();
     Login l = new Login();
     l.ShowDialog();
 }
Example #2
0
 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";
     }
 }