Question: Attributes Your version the AddOptionForm will have one unique attribute: o The option being added ( VehicleOption ) . Initializing the Form Even though the
Attributes
Your version the AddOptionForm will have one unique attribute:
o The option being added VehicleOption
Initializing the Form
Even though the design has been completed for you, you will still need to setup the state of the form and its controls.
When the form is opened, the location of the form is centered to the quote form.
Initialize the quantity NumericUpDown so that the minimum is maximum is and the user cannot type in the control.
Initialize the ErrorProvider so that the icon padding is and the icon does not blink ever
The option being added is initialized to null.
Include an accessor method for the attribute. DO NOT include a mutator method.
Add Button Clicked
When the add button is clicked:
Ensure all error icons are not visible.
Validate the input:
o Description is a required input. When the input does not contain any nonwhitespace characters, show an error for the control with an appropriate message.
o Unit price is a required numeric input. When the input is not numeric or the entered price is less than zero, show an error for the control with an appropriate message.
If the user's input is valid, define the vehicle option to add and close the form.
Cancel Button Clicked
When the cancel button is clicked, close the form.
I am having issues with getting the list from the AddOptionsForms to the QuoteForms
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
