Esempio n. 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text != "" && textBox2.Text != "")
     {
         // p1_name = textBox1.Text;
         // p2_name = textBox2.Text;
         this.Hide();
         ChooseImage new_game = new ChooseImage(textBox1.Text, textBox2.Text, bestOf3, bestOf5, newgame);
         new_game.Show();
     }
 }
Esempio n. 2
0
 private void textBox1_TextChanged(object sender, EventArgs e)
 {
     if (textBox1.Text != "" && textBox2.Text != "")
     {
         bestOf5 = true;
         //p1_name = textBox1.Text;
         //p2_name = textBox2.Text;
         this.Hide();
         ChooseImage new_game = new ChooseImage(textBox1.Text, textBox2.Text, bestOf3, bestOf5, newgame);
         new_game.Show();
     }
 }