Пример #1
0
        private void btn_1player_Click(object sender, EventArgs e)
        {
            GameFormComputer gameFormComputer = new GameFormComputer(this);

            gameFormComputer.StartPosition = FormStartPosition.Manual;
            gameFormComputer.Location      = this.Location;
            gameFormComputer.Show();
            this.Hide();
        }
Пример #2
0
 private void btn_playAgain_Click(object sender, EventArgs e)
 {
     if (parent is GameForm)
     {
         GameForm gameForm = new GameForm(this.parent.parent);
         gameForm.StartPosition = FormStartPosition.CenterScreen;
         gameForm.Show();
         shouldExit = false;
         this.Close();
     }
     else
     {
         GameFormComputer gameFormComputer = new GameFormComputer(this.parent.parent);
         gameFormComputer.StartPosition = FormStartPosition.CenterScreen;
         gameFormComputer.Show();
         shouldExit = false;
         this.Close();
     }
 }