示例#1
0
        /* Increases balance */
        private void button10_Click(object sender, EventArgs e)
        {
            String input  = bunifuMaterialTextbox8.Text;
            long   amount = 0;

            amount = Convert.ToInt64(input);

            client.AddMoney(amount);

            // update
            Double aux = Convert.ToDouble(this.Balance.Text);

            aux += amount;
            this.Balance.Text = "" + aux;
            this.bunifuMaterialTextbox8.Text = "";

            aux  = Convert.ToDouble(this.label35.Text);
            aux += amount;
            updateAvailableBalance("" + aux);
        }