public void btncheckbalance(object sender, EventArgs args) { Banktransaction b1 = new Banktransaction(); double udpatedBalance = b1.checkBalance(); lblResult.Text = "Balance: " + udpatedBalance.ToString(); }
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(); }