Question: C# . Thank you Create and use an Inventory Item class In this exercise, you'll add a class to an Inventory Maintenance application and then
C# Thank you Create and use an Inventory Item class In this exercise, you'll add a class to an Inventory Maintenance application and then add code to the two forms that use this class. Open the project and add an InvItem class Extract the provided start project HW Exercise Start. zip Then, review the existing code for both of the forms so you get an iden of how this application should work. Add a class named Invitem to this project, and add the properties, method, and constructors that are shown in the table below.Open the project and add an Invltem class Extract the provided start project HW Exercise Start zip Then, review the existing code for both of the forms so you get an idea of how this application should work. Add a class named Invitem to this project, and add the properties, method, and anetmietors that are shown in the table below. Add code to implement the New Item form Display the code for the New ltem form, and declare a class variable named invitem of type lnvltem with an initial value of noll. Add a public method named GetNewltem that displays the form as a dialog box and returns an Invitem object Add code to the btnSaveClick event handler that creates a new Invitem object and closes the form if the data is valid. Add code to implement the Inventory Maintenance form Display the code for the Inventory Maintenance form, and declare a class variable named invitems of type Listelnvltem with an initial value of null. Add a statement to the frmInvMaintLoad event handler that uses the Getitems method of the InvltemDB class to load the items list. Add code to the FillitemListBox method that adds the items in the list to the Items list box. Use the GetDisplay Text method of the InvItem class to format the item data. Add code to the btnAddClick event handler that creates a new instance of the New Item form and executes the GetNewitem method of that form. If the Invlitem object that's returned by this method is not null, this event handler should add the new item to the list, call the Saveltems method of the InvltemDB class to save the list, and then refresh the ltems list box. Test the application to be sure this event handler works. Add code to the btnDeleteClick event handler that removes the selected item from the list, calls the Saveltems method of the InvitemDB class to save the list, and refreshes the liems list box. Be sure to confirm the delete operation. Then, test the application to be sure this event handler works.
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
