private void btn_restart_Click(object sender, EventArgs e) { myBoardGame.restartGame(parentForm, this); //string size = "" + myBoardGame.boardWidth + " x " + myBoardGame.boardHeight+""; //myBoardGame.recovery(); // recovery data in board started. //if (size == "8 x 8") //{ // //MetroMessageBox.Show(this, "Let Go!!!"); // FormPlay8x8 form = new FormPlay8x8(myBoardGame); // form.Show(); // Hide(); // form.Location = parentForm.Location; //} //else //{ // MessageBox.Show("This feature is not support."); // FormMainMenu form = new FormMainMenu(myBoardGame); // form.Show(); // Hide(); // form.Location = parentForm.Location; //} //parentForm.Close(); }
private void btn_restart_Click(object sender, EventArgs e) { myBoardGame.restartGame(parentForm, this); //parentForm and tis form closed in methos restartGame(). }