Ejemplo n.º 1
0
        private void init()
        {
            //每次初始化都重绘背景
            Graphics g = Graphics.FromImage(bmp);

            drawingFormHelper.DrawBackground(g);

            //目前不可以反牌
            showSuits   = 0;
            whoShowRank = 0;

            //得分清零
            Scores = 0;


            //绘制Sidebar
            drawingFormHelper.DrawSidebar(g);
            //绘制东南西北

            drawingFormHelper.Starter();

            //绘制Rank
            drawingFormHelper.Rank();


            //绘制花色
            drawingFormHelper.Trump();

            send8Cards = new ArrayList();
            //调整花色
            if (currentRank == 53)
            {
                currentState.Suit = 5;
            }

            Refresh();
        }