コード例 #1
0
        /// <summary>
        /// 开始游戏.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnStart_Click(object sender, EventArgs e)
        {
            game.InitGames();

            // 洗牌.
            game.Shuffle();

            // 开始发牌.
            game.StartGame();

            // 开始以后,本按钮不可按.
            btnStart.Visible = false;

            this.btnHit.Visible   = true;
            this.btnStand.Visible = true;


            lblResult.Text = String.Empty;
        }