Exemple #1
0
        /// <summary>
        /// 自动选牌
        /// </summary>
        private void AutoSelectToList()
        {
            if (_selectInfo == null)
            {
                _selectInfo = new SelectedInfo();
                return;
            }
            if (_selectInfo.Dun == null)
            {
                return;
            }

            var cardsVal = new List <int>(_selectInfo.Dun.Cards);

            NoSelected();
            var selectCardList = GetSelectCardList(cardsVal);       //获取选中的牌

            for (int i = 0; i < selectCardList.Count; i++)
            {
                var card = selectCardList[i];
                SelectCard(card, true);         //选择选中的牌
            }
        }