Question: Given the form design down below, what does the following code do? Fields ID Product Name Product Price (s) Product Quantity: BTN private void btn_Click(object

 Given the form design down below, what does the following code

Given the form design down below, what does the following code do? Fields ID Product Name Product Price (s) Product Quantity: BTN private void btn_Click(object sender, EventArgs e) try Int Id - Int.Parse(labelID.Text); Int Index - Id - 1; recordList[index].productName - txtProductName.Text; recordList[index].productPrice = int.Parse(txtPrice.Text): recordList[index].productQuantity - int.Parse(comboQuantity. Selectediten. Tostring(): forn refresh(sender, e); catch (Exception ex) MessageBox.Show("error", "Error MessageBoxButtons.ok. Message Box Icon. Error): ex.GetHashcode(): Select one: a. Updates the entered fields to the recordList which is an array of productList. b. none of them Checks whether or not the productName, productPrice and productQuantity are matching with their equivalent form components. d. Adds the entered fields to the recorList which is an array of productList

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!