Example #1
0
 // C'tor
 public CheckersGameFormUI(CheckersGameManager i_GameLogic)
 {
     m_CheckersGameLogic   = i_GameLogic;
     m_BoardSizeUI         = m_CheckersGameLogic.TheBoard.BoardSize;
     m_CoordinationButtons = new Button[m_BoardSizeUI, m_BoardSizeUI];
     InitializeComponent();
 }
Example #2
0
        private void m_DoneButton_Click(object sender, EventArgs e)
        {
            string              mainPlayerName           = m_FirstPlayerNameTextBox.Text;
            string              secondPlayerName         = m_SecondPlayerNameTextBox.Text;
            PlayerType          playerTypeOfSecondPlayer = getPlayer2Type();
            int                 sizeBoard         = getSizeBoard();
            CheckersGameManager checkersGameLogic = new CheckersGameManager(sizeBoard, mainPlayerName, secondPlayerName, playerTypeOfSecondPlayer);
            CheckersGameFormUI  DamkaGame         = new CheckersGameFormUI(checkersGameLogic);

            this.Hide();
            this.Close();
            DamkaGame.StartGame();
        }