public MarkNotifier Handler(int i_Row, int i_Col) { MarkNotifier handler = null; if (i_Row < m_Handlers.GetLength(0) && i_Col < m_Handlers.GetLength(0) && i_Row >= 0 && i_Col >= 0) { handler = m_Handlers[i_Row, i_Col]; } return(handler); }
private void initializeBoard() { for (int row = 0; row < m_Board.GetLength(0); ++row) { for (int col = 0; col < m_Board.GetLength(0); ++col) { m_Board[row, col] = k_Blank; m_Handlers[row, col] = new MarkNotifier(); } } }