コード例 #1
0
        private void buttonPay_Click(object sender, EventArgs e)
        {
            requestHandlerMD.payDebt(playersSelectedToPayWithCards);

            bindPlayerPayDebt(requestHandlerMD.CurrentPlayFieldModel);
            playersPlayedCards            = new List <MonopolyDealServiceReference.Card>();
            playersSelectedToPayWithCards = new List <MonopolyDealServiceReference.Card>();
            CurrencyManager cmPlayed = (CurrencyManager)BindingContext[this.playersPlayedCards];

            cmPlayed.Refresh();
            CurrencyManager cmToPay = (CurrencyManager)BindingContext[this.playersSelectedToPayWithCards];

            cmToPay.Refresh();
            //Update State
            buttonPollMD_Click(null, null);
            timerForPollingState.Start();
        }