Example #1
0
        protected virtual void ToSelectFengOut(bool widthNum, int num)
        {
            var fengList = GetFengHandCards();
            var list     = GetMatchFengList(fengList, widthNum, num);

            if (list.Count > 1)
            {
                ShowMessageInfo info = new ShowMessageInfo()
                {
                    ShowType       = ShowMessageType.MulTypeGroup,
                    GroupCardsInfo = FengGangHelper.Instance.GetDataByInfos(list)
                };
                InteraptMenu.Instance.Revert();
                ShowInfoWithCard.Instance.ShowMessageWithInfo(info, sure =>
                {
                    var getList = sure as List <int>;
                    if (getList != null)
                    {
                        FengGangRequest(getList);
                    }
                    else
                    {
                        ReShowMenu();
                    }
                }, delegate
                {
                    ReShowMenu();
                });
            }
            else if (list.Count == 1)
            {
                var first = list.First();
                FengGangRequest(FengGangHelper.Instance.GetDataByInfo(first));
            }
        }
Example #2
0
        private void InfoTile_Click(object sender, System.EventArgs e)
        {
            ShowMessageInfo showmessage = new ShowMessageInfo();

            showmessage.ShowMessage();
        }