Пример #1
0
        private void tellResultAllPlayers()
        {
            CallbackInfo info = new CallbackInfo(cards.Count - cardIdx, playerCards);

            foreach (ICallback cb in callbacks.Values)
            {
                if (cb != null)
                {
                    cb.ShowResult(info);
                }
            }
        }
Пример #2
0
        } // end Stand

        private void updateAllClients()
        {
            CallbackInfo info = new CallbackInfo(cards.Count - cardIdx, playerCards);

            foreach (ICallback cb in callbacks.Values)
            {
                if (cb != null)
                {
                    cb.UpdateGui(info);
                }
            }
        }