Please help!
Part 1. Create a Windows Forms application that consists of:
a Label to display the account owner's name
a Label to display the account number
a Label to display the account balance
a TextBox for withdrawal amount
a Withdraw button that is disabled (Enabled = false) by default
a TextBox for deposit amount
a Deposit button that is disabled (Enabled = false) by default
a Close Account button
Part 2. Create an Account object in the form by:
Adding Account.cs (same one as we wrote in class or use the one from Test 2) to the solution/project.
Add an Account variable called myAccount as a field in the Form 1 class.
In the Form1() constructor, set myAccount to a new instance of Account, initializing the account with 101 for the account number, "Scrooge McDuck" as the account owner, and 1000000 as the initial balance.
Part 3. Implement the following GUI behavior using events:
When the form loads (Load event) set the labels' Text properties to display the account owner's name, account number, and account balance.
When the user types in an amount greater than zero into the deposit
TextBox, enable the Deposit button.
When the user clicks on the Deposit button, deposit the amount into the account (by calling the Deposit method) and update the label to show the new balance.
When the user types in an amount that is greater than zero, but less than the total account balance into the Withdrawal textbox, enable the Withdrawal button.
When the user clicks on the Withdraw button, withdraw the amount from the account and update the label to show the new balance.
When the user clicks on the Close Account button, call the Close method on the account and update the labels for account owner and the balance.
Part 1. Create a Windows Forms application that consists of:
a Label to display the account owner's name
a Label to display the account number
a Label to display the account balance
a TextBox for withdrawal amount
a Withdraw button that is disabled (Enabled = false) by default
a TextBox for deposit amount
a Deposit button that is disabled (Enabled = false) by default
a Close Account button
Part 2. Create an Account object in the form by:
Adding Account.cs (same one as we wrote in class or use the one from Test 2) to the solution/project.
Add an Account variable called myAccount as a field in the Form 1 class.
In the Form1() constructor, set myAccount to a new instance of Account, initializing the account with 101 for the account number, "Scrooge McDuck" as the account owner, and 1000000 as the initial balance.
Part 3. Implement the following GUI behavior using events:
When the form loads (Load event) set the labels' Text properties to display the account owner's name, account number, and account balance.
When the user types in an amount greater than zero into the deposit
TextBox, enable the Deposit button.
When the user clicks on the Deposit button, deposit the amount into the account (by calling the Deposit method) and update the label to show the new balance.
When the user types in an amount that is greater than zero, but less than the total account balance into the Withdrawal textbox, enable the Withdrawal button.
When the user clicks on the Withdraw button, withdraw the amount from the account and update the label to show the new balance.
When the user clicks on the Close Account button, call the Close method on the account and update the labels for account owner and the balance.