Exemplo n.º 1
0
        private void btn_menu_Click(object sender, EventArgs e)
        {
            myBoardGame.updateTable(myBoard.getBoardSection());                   // get boardSection and assgin player holder to object myGame.
            myBoardGame.updateTableTolist();                                      // update value provide save object to XML.

            this.Enabled = false;                                                 // lock this form ,
            FormMenuInGame form = new FormMenuInGame(this, myBoardGame, myBoard); // load save form.

            form.Show();
            //Hide();
            form.Location = new Point(this.Location.X + (this.Width / 2) - (form.Size.Width / 2), this.Location.Y + (this.Height / 2) - (form.Size.Height / 2));
        }