Beispiel #1
0
        // public delegate void showFun(bool b);
        //显示游戏界面中其他玩家界面
        private void showGameRoom(int tableIdx, int seatIdx)
        {
            myLogic.gameArea.UnGameStatus();
            gameTable tablesInfo = hall.tables[tableIdx];
            int       mypos      = seatIdx;
            int       t          = 0;

            for (int i = mypos + 1; i < mypos + 4; i++)
            {
                int k = i % 4;
                if (tablesInfo.seatUser[k] != "")
                {
                    otherPlayersLogic[t].SetPlayer(tablesInfo.seatUser[k]);
                    GameArea ga = otherPlayersLogic[t].gameArea;
                    ga.UnGameStatus();
                    ga.Show();
                }
                else
                {
                    GameArea ga = otherPlayersLogic[t].gameArea;
                    ga.UnGameStatus();
                    //ga.Show();
                }
                t++;
            }
        }
Beispiel #2
0
 public void ShowArea()
 {
     if (gameArea.InvokeRequired)
     {
         gameArea.Invoke(new showFun(gameArea.Show));
     }
     else
     {
         gameArea.Show();
     }
 }