Exemplo n.º 1
0
        public void btncheckbalance(object sender, EventArgs args)
        {
            Banktransaction b1             = new Banktransaction();
            double          udpatedBalance = b1.checkBalance();

            lblResult.Text = "Balance: " + udpatedBalance.ToString();
        }
Exemplo n.º 2
0
        public void btnwithdrawal(object sender, EventArgs args)
        {
            amt = double.Parse(txtAmount.Text);
            Banktransaction b1             = new Banktransaction();
            double          udpatedBalance = b1.withdrawal(amt);

            lblResult.Text = "Balance after withdrawal: " + udpatedBalance.ToString();
        }