public void InitBoard() { for (int i = 0; i < m_BoardGameLogic.NumOfRows; i++) { for (int j = 0; j < m_BoardGameLogic.NumOfColumns; j++) { MemoryGame.Square currentSquare = m_BoardGameLogic.m_SuqaresValue[i, j]; m_BoardGameButtons[i, j] = new MemoryGameButton(currentSquare); m_BoardGameButtons[i, j].Click += new EventHandler(ButtonClicked); // need to change 0 const if (i == 0 && j == 0) { m_BoardGameButtons[i, j].Location.X; } else { } m_BoardGameButtons[i, j].Location.X; } } }
public MemoryGameButton(MemoryGame.Square i_SquareInBoardGame) : base() { r_Button = i_SquareInBoardGame; }
public MemoryGameButton(MemoryGame.Square i_SquareInBoardGame, Image i_Image) : base() { r_Button = i_SquareInBoardGame; r_Image = i_Image; }