Пример #1
0
        private void buttonStart_Click(object sender, EventArgs e)
        {
            FormGameBoard formGameBoard = new FormGameBoard(this);

            this.Hide();
            formGameBoard.FormClosed += FormGameBoard_FormClosed;
            formGameBoard.ShowDialog();
        }
Пример #2
0
        public void Start()
        {
            r_Setup.ShowDialog();
            List <Image> deckOfCards = generateDeckOfCards();

            m_GameBoard          = new FormGameBoard(r_Setup.Settings, deckOfCards);
            r_Setup.DialogResult = DialogResult.OK;

            do
            {
                m_GameBoard.ShowDialog();
            }while (m_GameBoard.DialogResult == DialogResult.Yes);
        }