Example #1
0
        private void buttonBankCard_Click(object sender, EventArgs e)
        {
            int cardIDOfCardToBank = -1;

            if (listBox1.Items.Count != 0)
            {
                cardIDOfCardToBank = (int)((MonopolyDealServiceReference.Card)listBox1.SelectedValue).cardID;
                requestHandler.bankCard(cardIDOfCardToBank);
            }
            else
            {
                buttonBankCard.Enabled = false;
            }
            //Update State
            buttonPollMD_Click(null, null);
        }