Esempio n. 1
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            GameMenu back = new GameMenu();

            back.Show();
            this.Hide();
        }
Esempio n. 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (inputUserName.Text == "")
     {
         MessageBox.Show("Field is require");
     }
     else if (inputPassword.Text == "")
     {
         MessageBox.Show("Field is require");
     }
     else
     {
         User user = new User(inputUserName.Text, inputPassword.Text);
         GameKids.User.listUsers.Add(user);
         GameMenu gameMenu = new GameMenu();
         gameMenu.Show();
         this.Hide();
     }
 }