Example #1
0
 private void setUpGameSettings()
 {
     m_GameSettingsForm = new GameSettingsForm();
     m_GameSettingsForm.SetStartButtonMethod(new EventHandler(this.buttonStart_Clicked));
     m_BoardForm = new BoardForm();
     m_BoardForm.Show();
     m_GameSettingsForm.ShowDialog();
 }
Example #2
0
        private void setBoardToPlay()
        {
            if (!m_BoardForm.IsBoardSet)
            {
                m_BoardForm = new BoardForm(m_GameManager, new EventHandler(buttonCol_Clicked));
                setBoardNotifiers();
                m_BoardForm.ShowDialog();
            }

            if (m_ResetNextGame || m_ResetNow)
            {
                m_GameManager.Reset();
                m_BoardForm.ResizeBoard(m_GameManager, new EventHandler(buttonCol_Clicked));
                m_ResetNow      = false;
                m_ResetNextGame = false;
            }

            m_BoardForm.ResetGame(m_GameManager);
        }