Exemple #1
0
        /// <summary>
        /// launch instance of durak form and close the main menu form
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnPlay_Click(object sender, EventArgs e)
        {
            // hidding frmMainMenu
            this.Hide();

            // new frmGame instance
            frmGame game = new frmGame();

            // show the frmGame form
            game.ShowDialog();

            // close frmMainMenu
            this.Close();
        }
Exemple #2
0
        /// <summary>
        /// launch instance of durak form and close the main menu form
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnPlay_Click(object sender, EventArgs e)
        {
            // hidding frmMainMenu
            this.Hide();

            //new frmGame instance
            frmGame game = new frmGame();

            //TESTING STATS PROMPT
            //StatsPrompt prompt = new StatsPrompt();
            game.ShowDialog();

            // show the frmGame form
            // game.ShowDialog();

            // close frmMainMenu
            this.Close();
        }